Sha256: dab7d9245f6ab0120e76e2c42a1322de29fd4bd5122538472c862f62ab54581f

Contents?: true

Size: 359 Bytes

Versions: 28

Compression:

Stored size: 359 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.js.coffee", File.join('app/assets/javascripts', class_path, "#{file_name}.js.coffee")
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 5 rubygems

Version Path
solidus_backend-1.0.0.pre vendor/bundle/gems/coffee-rails-4.0.1/lib/rails/generators/coffee/assets/assets_generator.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
coffee-rails-4.0.1 lib/rails/generators/coffee/assets/assets_generator.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
coffee-rails-4.0.0 lib/rails/generators/coffee/assets/assets_generator.rb
coffee-rails-4.0.0.beta1 lib/rails/generators/coffee/assets/assets_generator.rb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
coffee-redux-rails-4.0.0.beta lib/rails/generators/coffee/assets/assets_generator.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/coffee-rails-3.2.2/lib/rails/generators/coffee/assets/assets_generator.rb
coffee-rails-3.2.2 lib/rails/generators/coffee/assets/assets_generator.rb