mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
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:
parent
b1495a1560
commit
96f6be92e8
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user