Skip to content

Commit

Permalink
No need to clean array when converting to string (array should always…
Browse files Browse the repository at this point in the history
… be clean)
  • Loading branch information
mattiassvedhem committed Feb 23, 2012
1 parent e86e8e7 commit 0c2b9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid/taggable_with_context.rb
Expand Up @@ -153,7 +153,7 @@ def convert_string_to_array(str = "", separator = " ")
end

def convert_array_to_string(ary = [], separator = " ")
clean_up_array(ary).join(separator)
ary.join(separator)
end

def clean_up_array(ary = [])
Expand Down

0 comments on commit 0c2b9ac

Please sign in to comment.