prevented modifying original caller's collection

This commit is contained in:
Heinrich Klobuczek 2011-08-28 22:34:42 -07:00
parent 9790f90d30
commit c439ad00fa
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ module SimpleForm
end
def translate_collection
collection.map! {|value| [translate(:options, value.to_s), value.to_s]}
@collection = @collection.map {|value| [translate(:options, value.to_s), value.to_s]}
end
end
end