HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
:datetime, :date and :time selects now support a :default option in f…
…avour of a deprecated :selected option (issue #152): * if the object has a value, we should pre-select that at all times, ignoring the :default option * if the object has no value, and :default is provided as a Date/Time then :default should be pre-selected * if the object has no value, and :default is provided as nil then no option should be pre-selected (it will default to the first) * if the object has no value, and :default is not provided then fallback to Time.now (or perhaps a configurable default) * :selected invokes a deprecation warning, but is an alias of :default * it's not a real deprecation, as the behaviour has changed with all the bugs and half-fixes
- Loading branch information...
Showing with 198 additions and 134 deletions.