You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def location_params
if (location.changed & Location::ADDRESS_FIELDS.map(&:to_s)).any?
location.as_json # maybe dangerous to reuse serializable_hash here?
else
{}
end
end
need to at least have a test the ensures that changes to Location#serializable_hash don't break this method
The text was updated successfully, but these errors were encountered:
not sure
location.as_json
is safe to use here:need to at least have a test the ensures that changes to
Location#serializable_hash
don't break this methodThe text was updated successfully, but these errors were encountered: