mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
re: RuboCop - get rid of redundant curly braces around a hash parameter
This commit is contained in:
@@ -8,7 +8,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def test_overwrite_root
|
||||
serializer = VirtualValueSerializer.new(@virtual_value, { root: 'smth' })
|
||||
serializer = VirtualValueSerializer.new(@virtual_value, root: 'smth')
|
||||
assert_equal('smth', serializer.json_key)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user