Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct handling of date selects when using both disabled and discard options #7435

Merged
merged 1 commit into from Aug 25, 2012

Commits on Aug 25, 2012

  1. correct handling of date selects when using both disabled and discard…

    … options
    
    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 rails#7431
    nashby committed Aug 25, 2012
    Copy the full SHA
    130fe2b View commit details
    Browse the repository at this point in the history