Sha256: ceb7d0431e018c4b4fbeaeab7ae3ce3d7128d37590b24d551cd89d60a575d051

Contents?: true

Size: 384 Bytes

Versions: 1

Compression:

Stored size: 384 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", "app/assets/javascripts/#{app_name}/controllers/#{file_name}.coffee"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spine-rails-0.0.5 lib/generators/spine/controller/controller_generator.rb