Sha256: 4bb88e7b9c042e5ce2507c20b8fece4350088d4854e0509209429b1833fdbe23

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

require 'rails/generators/named_base'

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roy-rails-0.0.2 lib/rails/generators/roy/assets/assets_generator.rb
roy-rails-0.0.1 lib/rails/generators/roy/assets/assets_generator.rb