Sha256: ccfc324a6ff11609db9e4714d1e941a3b08653769a7f539bb7f67c5e69eff90a

Contents?: true

Size: 341 Bytes

Versions: 8

Compression:

Stored size: 341 Bytes

Contents

module Cocoon
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)
      desc "This generator installs the javascript needed for cocoon"

      def copy_the_javascript
        copy_file "cocoon.js", "public/javascripts/cocoon.js"
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cocoon-1.0.8 lib/generators/cocoon/install/install_generator.rb
cocoon-1.0.7 lib/generators/cocoon/install/install_generator.rb
cocoon-1.0.5 lib/generators/cocoon/install/install_generator.rb
cocoon-1.0.4 lib/generators/cocoon/install/install_generator.rb
cocoon-1.0.3 lib/generators/cocoon/install/install_generator.rb
cocoon-1.0.2 lib/generators/cocoon/install/install_generator.rb
cocoon-1.0.1 lib/generators/cocoon/install/install_generator.rb
cocoon-1.0.0 lib/generators/cocoon/install/install_generator.rb