Sha256: 5e10a25425c5cd4da6b225c791141e938049ec31ce205cc06922c95c5760e582

Contents?: true

Size: 353 Bytes

Versions: 12

Compression:

Stored size: 353 Bytes

Contents

require "rails/generators/named_base"

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

      def copy_coffee
        template "javascript.coffee", File.join('app/assets/javascripts', class_path, "#{file_name}.coffee")
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
coffee-rails-5.0.0 lib/rails/generators/coffee/assets/assets_generator.rb
coffee-rails-4.2.2 lib/rails/generators/coffee/assets/assets_generator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/coffee-rails-4.2.1/lib/rails/generators/coffee/assets/assets_generator.rb
coffee-rails-4.2.1 lib/rails/generators/coffee/assets/assets_generator.rb
coffee-rails-4.2.0 lib/rails/generators/coffee/assets/assets_generator.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/coffee-rails-4.1.1/lib/rails/generators/coffee/assets/assets_generator.rb
coffee-rails-4.1.1 lib/rails/generators/coffee/assets/assets_generator.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/coffee-rails-4.1.0/lib/rails/generators/coffee/assets/assets_generator.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/coffee-rails-4.1.0/lib/rails/generators/coffee/assets/assets_generator.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/coffee-rails-4.1.0/lib/rails/generators/coffee/assets/assets_generator.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/coffee-rails-4.1.0/lib/rails/generators/coffee/assets/assets_generator.rb
coffee-rails-4.1.0 lib/rails/generators/coffee/assets/assets_generator.rb