Sha256: 2e9754d0c70f880f5e81c0afe2cb8f84a66401bf6371ae7cc977c1cc1c6a4a09
Contents?: true
Size: 517 Bytes
Versions: 37
Compression:
Stored size: 517 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 if ::Rails.version[0..2].to_f >= 3.1 puts "Installing is no longer required since Rails 3.1" else copy_file "../../../../../app/assets/javascripts/cocoon.js", "public/javascripts/cocoon.js" end end end end end
Version data entries
37 entries across 37 versions & 4 rubygems