• V
    correct handling of date selects when using both disabled and discard options · 130fe2b1
    Vasiliy Ermolovich 提交于
    we should take disabled option not only from `html_options` hash but from
    `options` hash too like `build_select` method does it. So
    
    datetime_select("post", "updated_at", { :discard_minute => true }, { :disabled => true })
    datetime_select("post", "updated_at", :discard_minute => true , :disabled => true)
    
    both these variants work now
    
    closes #7431
    130fe2b1
date_helper.rb 54.1 KB