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:
parent
4777feb092
commit
5364fdc0f2
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue