Skip to content

Commit

Permalink
Return a single value rather than an array. This preserves the semant…
Browse files Browse the repository at this point in the history
…ic of the code and fixes #449
  • Loading branch information
hectorcorrea committed Nov 10, 2015
1 parent 64527cc commit a87bb0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def rights
end

def mime_type
self[Solrizer.solr_name('mime_type', :stored_sortable)]
Array(self[Solrizer.solr_name('mime_type', :stored_sortable)]).first
end

def read_groups
Expand Down

0 comments on commit a87bb0c

Please sign in to comment.