Sha256: dc61e40a8fe6f1bfc5c2711d1ee854b33b2f898ab4f7a03c8c2d27cc2c806805

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

require 'rails/generators/erb/controller/controller_generator'

module Fortitude
  module Generators
    class ControllerGenerator < Erb::Generators::ControllerGenerator
      source_root File.join(File.dirname(__FILE__), 'templates')

      def create_view_base
        generate "fortitude:base_view"
      end

      protected
      def handler
        :rb
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fortitude-0.9.6-java lib/rails/generators/fortitude/controller/controller_generator.rb
fortitude-0.9.6 lib/rails/generators/fortitude/controller/controller_generator.rb