Clean up a bit.

This commit is contained in:
Gabe Berke-Williams 2012-04-09 21:03:19 -04:00
parent 820f2167b6
commit 2e73b351bb
1 changed files with 1 additions and 5 deletions

View File

@ -98,11 +98,7 @@ module Shoulda # :nodoc:
end
def normalize_columns_to_array(columns)
if columns.class == Array
columns.map(&:to_s)
else
[columns.to_s]
end
Array.wrap(columns).map(&:to_s)
end
end
end