Sha256: a250eb33467e470e516026738a58a7cffbc85ace2f66da1fbce7dc1b194015d0
Contents?: true
Size: 354 Bytes
Versions: 24
Compression:
Stored size: 354 Bytes
Contents
module RailsScript module Generators class ControllerGenerator < ::Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) argument :controller, type: :string def generate_file template 'javascript.js.coffee', "app/assets/javascripts/#{controller.underscore}.js.coffee" end end end end
Version data entries
24 entries across 24 versions & 1 rubygems