We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3857076 commit 437d75dCopy full SHA for 437d75d
test/action_controller/serialization_test.rb
@@ -47,12 +47,11 @@ def render_array_using_implicit_serializer_and_meta
47
48
def render_array_using_implicit_serializer_and_links
49
with_adapter ActiveModel::Serializer::Adapter::JsonApi do
50
-
51
@profiles = [
52
- Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
+ Profile.new(name: 'Name 1', description: 'Description 1', comments: 'Comments 1')
53
]
54
55
- render json: @profiles, links: { self: "http://example.com/api/profiles/1" }
+ render json: @profiles, links: { self: 'http://example.com/api/profiles/1' }
56
end
57
58
0 commit comments