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-2.0.4 lib/generators/rails_script/utility/utility_generator.rb
rails_script-2.0.3 lib/generators/rails_script/utility/utility_generator.rb
rails_script-2.0.2 lib/generators/rails_script/utility/utility_generator.rb
rails_script-2.0.1 lib/generators/rails_script/utility/utility_generator.rb
rails_script-2.0.0 lib/generators/rails_script/utility/utility_generator.rb
rails_script-1.0.0 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.7.0 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.6.1 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.6.0 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.5.0 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.4.1 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.4.0 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.3.2 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.3.1 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.3.0 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.2.0 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.1.4 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.1.3 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.1.2 lib/generators/rails_script/utility/utility_generator.rb
rails_script-0.1.1 lib/generators/rails_script/utility/utility_generator.rb