Sha256: 797a58a882120e39fd15223146ae941d79e48118afbde617b89a04324abb24b5

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

require "rails/generators/named_base"

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
livescript-rails-1.0.0 lib/rails/generators/livescript/assets/assets_generator.rb