Sha256: 1ed6970f443543f2824b4478fa95b3630d126291910566091bd38f02dac9b786

Contents?: true

Size: 365 Bytes

Versions: 21

Compression:

Stored size: 365 Bytes

Contents

module RailsScript
  module Generators
    class UtilityGenerator < ::Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)
      argument :utility_name, type: :string

      def generate_file
        template 'javascript.js.coffee', "app/assets/javascripts/utilities/#{utility_name.underscore}.js.coffee"
      end

    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rails_script-0.1.0 lib/generators/rails_script/utility/utility_generator.rb