1
0
Fork 0
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:
Jon Atack 2014-10-12 14:34:54 +02:00
parent 85dfd9e6bf
commit 58e1496ef1

View file

@ -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