Skip to content
Snippets Groups Projects
Commit f786756d authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

return [] if metadata.blank

parent 604141d2
No related branches found
No related tags found
1 merge request!314add remove collection item
......@@ -12,6 +12,7 @@ module Metadatable
end
def get_metadata_values_of(key)
return [] if metadata.blank?
metadata[key].blank? ? [] : metadata[key]
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment