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: 605897b5a0
This commit is contained in:
Kir Shatrov 2016-12-19 13:45:49 -05:00 committed by GitHub
parent b1495a1560
commit 96f6be92e8

View File

@ -7,7 +7,7 @@ module Rails
if Rails::VERSION::MAJOR >= 4
source_root File.expand_path('../templates', __FILE__)
hook_for :serializer, default: true
hook_for :serializer, default: true, type: :boolean
end
end
end