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

Version Path
rails_script-0.1.0 lib/generators/rails_script/controller/controller_generator.rb
rails_script-0.0.7 lib/generators/rails_script/controller/controller_generator.rb
rails_script-0.0.5 lib/generators/rails_script/controller/controller_generator.rb
rails_script-0.0.4 lib/generators/rails_script/controller/controller_generator.rb