lib/generators/controller_override.rb in draper-3.0.0.pre1 vs lib/generators/controller_override.rb in draper-3.0.0
- old
+ new
@@ -3,15 +3,15 @@
require "rails/generators/rails/scaffold_controller/scaffold_controller_generator"
module Rails
module Generators
class ControllerGenerator
- hook_for :decorator, default: true do |generator|
+ hook_for :decorator, type: :boolean, default: true do |generator|
invoke generator, [name.singularize]
end
end
class ScaffoldControllerGenerator
- hook_for :decorator, default: true
+ hook_for :decorator, type: :boolean, default: true
end
end
end