Sha256: 9d3d929c8c18a415daa0a7f55144d72de1dc52375b18cf73aba2c20c481f85cd

Contents?: true

Size: 456 Bytes

Versions: 7

Compression:

Stored size: 456 Bytes

Contents

require "rails/generators"
require "rails/generators/rails/controller/controller_generator"
require "rails/generators/rails/scaffold_controller/scaffold_controller_generator"

module Rails
  module Generators
    class ControllerGenerator
      hook_for :decorator, default: true do |generator|
        invoke generator, [name.singularize]
      end
    end

    class ScaffoldControllerGenerator
      hook_for :decorator, default: true
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
draper-3.0.0.pre1 lib/generators/controller_override.rb
draper_new-3.0.0 lib/generators/controller_override.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/draper-2.1.0/lib/generators/controller_override.rb
draper-2.1.0 lib/generators/controller_override.rb
draper-2.0.0 lib/generators/controller_override.rb
draper-1.4.0 lib/generators/controller_override.rb
draper-1.3.1 lib/generators/controller_override.rb