Sha256: d5afb1a2ef70338ec5de21dd3e8dd623263de089da774a77944096f1cb0e24ec

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

require 'rails/generators/named_base'

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
livescript-rails-2.0.2 lib/rails/generators/ls/assets/assets_generator.rb
livescript-rails-2.0.1 lib/rails/generators/ls/assets/assets_generator.rb
livescript-rails-2.0.0 lib/rails/generators/ls/assets/assets_generator.rb