Skip to content

Commit 96f6be9

Browse files
authored
Fix warning on Thor
The default argument type for Thor is `string`. Unless it's specified that we pass `boolean`, we get the warning: `Expected string default value for '--serializer'; got true (boolean)` Details: rails/thor@605897b
1 parent b1495a1 commit 96f6be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ScaffoldControllerGenerator
77
if Rails::VERSION::MAJOR >= 4
88
source_root File.expand_path('../templates', __FILE__)
99

10-
hook_for :serializer, default: true
10+
hook_for :serializer, default: true, type: :boolean
1111
end
1212
end
1313
end

0 commit comments

Comments
 (0)