mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Extract links and type-related methods to their own module.
This commit is contained in:
@@ -208,7 +208,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def links_for(serializer)
|
||||
serializer.links.each_with_object({}) do |(name, value), hash|
|
||||
serializer._links.each_with_object({}) do |(name, value), hash|
|
||||
hash[name] =
|
||||
if value.respond_to?(:call)
|
||||
link = Link.new(serializer)
|
||||
|
||||
Reference in New Issue
Block a user