mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Add URL to serializers (closes #61)
Thanks so much to @vanstee for the initial implementation!
This commit is contained in:
@@ -49,6 +49,7 @@ module ActionController
|
||||
|
||||
if serializer
|
||||
options[:scope] = serialization_scope
|
||||
options[:url_options] = url_options
|
||||
json = serializer.new(json, options.merge(default_serializer_options || {}))
|
||||
end
|
||||
super
|
||||
|
||||
Reference in New Issue
Block a user