1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

Translate each option individually

No need to iterate over a list of 2 elements.
This commit is contained in:
Carlos Antonio da Silva 2014-07-09 18:50:08 -03:00
parent 4777feb092
commit 5364fdc0f2

View file

@ -21,10 +21,8 @@ module SimpleForm
options = super
options[:include_blank] = true unless skip_include_blank?
[:prompt, :include_blank].each do |key|
translate_option options, key
end
translate_option options, :prompt
translate_option options, :include_blank
options
end