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