Sha256: e918bcb7b6611245ff69938f38068c80246b67137b3a281ca14ed0c0472abe0e

Contents?: true

Size: 466 Bytes

Versions: 5

Compression:

Stored size: 466 Bytes

Contents

require 'rails'
require 'spine/generators'

module Spine
  module Generators
    class ControllerGenerator < Base
      source_root File.expand_path("../templates", __FILE__)
      desc "Generate a Spine controller"

      def create_controller
        template "controller.coffee.erb", File.join(
          "app/assets/javascripts", 
          app_name, "controllers", 
          class_path, file_name.pluralize + ".js.coffee"
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spine-rails-0.1.2 lib/generators/spine/controller/controller_generator.rb
spine-rails-0.1.1 lib/generators/spine/controller/controller_generator.rb
spine-rails-0.1.0 lib/generators/spine/controller/controller_generator.rb
spine-rails-0.0.9 lib/generators/spine/controller/controller_generator.rb
spine-rails-0.0.8 lib/generators/spine/controller/controller_generator.rb