Sha256: 23649d8e91774ed3db51fd5b9c140e0a6c30708dab22daf0c23745b9aec64521

Contents?: true

Size: 318 Bytes

Versions: 5

Compression:

Stored size: 318 Bytes

Contents

require "rails/generators/erb/controller/controller_generator"

module Slim
  module Generators
    class ControllerGenerator < Erb::Generators::ControllerGenerator
      source_root File.expand_path(File.join("..", "templates"), __FILE__)

      protected

      def handler
        :slim
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slim-rails-3.6.3 lib/generators/slim/controller/controller_generator.rb
slim-rails-3.6.2 lib/generators/slim/controller/controller_generator.rb
slim-rails-3.6.1 lib/generators/slim/controller/controller_generator.rb
slim-rails-3.5.1 lib/generators/slim/controller/controller_generator.rb
slim-rails-3.5.0 lib/generators/slim/controller/controller_generator.rb