Use to_gid_param for connection identifiers
This commit is contained in:
parent
a74bcae30a
commit
952887a8bd
@ -34,8 +34,8 @@ def connection_identifier
|
||||
private
|
||||
def connection_gid(ids)
|
||||
ids.map do |o|
|
||||
if o.respond_to? :to_global_id
|
||||
o.to_global_id.to_s
|
||||
if o.respond_to? :to_gid_param
|
||||
o.to_gid_param
|
||||
else
|
||||
o.to_s
|
||||
end
|
||||
|
@ -8,4 +8,8 @@ def initialize(name)
|
||||
def to_global_id
|
||||
GlobalID.new("User##{name}")
|
||||
end
|
||||
|
||||
def to_gid_param
|
||||
to_global_id.to_param
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user