Skip to content

Commit 1fb4a3b

Browse files
committed
Set proper type for jbuilder option to prevent a warning with Thor >= 0.19.3
See rails/thor#435, right now we got a warning >Expected string default value for '--jbuilder'; got true (boolean)
1 parent ed5e4c6 commit 1fb4a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/rails/scaffold_controller_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Generators
66
class ScaffoldControllerGenerator
77
source_paths << File.expand_path('../templates', __FILE__)
88

9-
hook_for :jbuilder, default: true
9+
hook_for :jbuilder, type: :boolean, default: true
1010
end
1111
end
1212
end

0 commit comments

Comments
 (0)