mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Return empty hash when url_options not provided
This commit is contained in:
@@ -449,7 +449,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def url_options
|
||||
@options[:url_options]
|
||||
@options[:url_options] || {}
|
||||
end
|
||||
|
||||
# Returns a json representation of the serializable
|
||||
|
||||
Reference in New Issue
Block a user