prevented modifying original caller's collection
This commit is contained in:
parent
9790f90d30
commit
c439ad00fa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue