Return empty hash when url_options not provided

This commit is contained in:
Alex Kwiatkowski & Will Bagby
2012-08-07 12:56:58 -04:00
parent dd5cdb6ddb
commit 754aa295ba
2 changed files with 7 additions and 1 deletions

View File

@@ -449,7 +449,7 @@ module ActiveModel
end
def url_options
@options[:url_options]
@options[:url_options] || {}
end
# Returns a json representation of the serializable