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 33a0f9c commit 2627740Copy full SHA for 2627740
lib/active_model_serializers/adapter/json_api/link.rb
@@ -42,6 +42,8 @@ class Link
42
include SerializationContext::UrlHelpers
43
44
def initialize(serializer, value)
45
+ @_routes ||= nil # handles warning
46
+ # actionpack-4.0.13/lib/action_dispatch/routing/route_set.rb:417: warning: instance variable @_routes not initialized
47
@object = serializer.object
48
@scope = serializer.scope
49
0 commit comments