Sha256: 046cefc5443d50550828f16edf05daabc10f2ac42be5e28a72c70e0d60632c36

Contents?: true

Size: 374 Bytes

Versions: 161

Compression:

Stored size: 374 Bytes

Contents

require "rails/generators/named_base"

module Js # :nodoc:
  module Generators # :nodoc:
    class AssetsGenerator < Rails::Generators::NamedBase # :nodoc:
      source_root File.expand_path("../templates", __FILE__)

      def copy_javascript
        copy_file "javascript.js", File.join('app/assets/javascripts', class_path, "#{file_name}.js")
      end
    end
  end
end

Version data entries

161 entries across 156 versions & 12 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/railties-4.2.8/lib/rails/generators/js/assets/assets_generator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/railties-5.0.2/lib/rails/generators/js/assets/assets_generator.rb
railties-5.0.2 lib/rails/generators/js/assets/assets_generator.rb
railties-5.0.2.rc1 lib/rails/generators/js/assets/assets_generator.rb
railties-4.2.8 lib/rails/generators/js/assets/assets_generator.rb
railties-4.2.8.rc1 lib/rails/generators/js/assets/assets_generator.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/js/assets/assets_generator.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/js/assets/assets_generator.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/js/assets/assets_generator.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/js/assets/assets_generator.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/js/assets/assets_generator.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/js/assets/assets_generator.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/generators/js/assets/assets_generator.rb
abaci-0.3.0 vendor/bundle/gems/railties-5.0.0/lib/rails/generators/js/assets/assets_generator.rb
railties-5.0.1 lib/rails/generators/js/assets/assets_generator.rb
railties-5.0.1.rc2 lib/rails/generators/js/assets/assets_generator.rb
railties-5.0.1.rc1 lib/rails/generators/js/assets/assets_generator.rb
railties-5.0.0.1 lib/rails/generators/js/assets/assets_generator.rb
railties-4.2.7.1 lib/rails/generators/js/assets/assets_generator.rb
railties-4.2.7 lib/rails/generators/js/assets/assets_generator.rb