mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
Clean up spec
This commit is contained in:
parent
85dfd9e6bf
commit
58e1496ef1
1 changed files with 2 additions and 2 deletions
|
@ -161,9 +161,9 @@ module Ransack
|
|||
|
||||
def date_select_html(val)
|
||||
if ::ActiveRecord::VERSION::STRING >= '4.2'.freeze
|
||||
"<option value=\"#{val}\" selected=\"selected\">#{val}</option>"
|
||||
%(<option value="#{val}" selected="selected">#{val}</option>)
|
||||
else
|
||||
"<option selected=\"selected\" value=\"#{val}\">#{val}<\/option>"
|
||||
%(<option selected="selected" value="#{val}">#{val}</option>)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue