corrected translate_collection
This commit is contained in:
parent
c439ad00fa
commit
cdffc86984
2
Gemfile
2
Gemfile
|
@ -2,7 +2,7 @@ source "http://rubygems.org"
|
|||
|
||||
gemspec
|
||||
|
||||
gem "rake", '0.9.3.beta1'
|
||||
gem "rake", '0.9.3.beta.1'
|
||||
gem "rdoc"
|
||||
gem "mocha"
|
||||
gem "ruby-debug", :platform => :mri_18
|
||||
|
|
|
@ -89,7 +89,7 @@ module SimpleForm
|
|||
end
|
||||
|
||||
def translate_collection
|
||||
@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