mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Silence @_routes warnings
This commit is contained in:
parent
33a0f9c806
commit
2627740806
@ -42,6 +42,8 @@ module ActiveModelSerializers
|
||||
include SerializationContext::UrlHelpers
|
||||
|
||||
def initialize(serializer, value)
|
||||
@_routes ||= nil # handles warning
|
||||
# actionpack-4.0.13/lib/action_dispatch/routing/route_set.rb:417: warning: instance variable @_routes not initialized
|
||||
@object = serializer.object
|
||||
@scope = serializer.scope
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user