lib/scooby_snacks/field.rb in scooby_snacks-0.3.3 vs lib/scooby_snacks/field.rb in scooby_snacks-0.3.4
- old
+ new
@@ -103,10 +103,12 @@
!@oai_element.nil? && !@oai_ns.nil?
end
def display_options
options = {label: label}
- if searchable?
+ if date?
+ options[:render_as] = :date
+ elsif searchable?
options[:render_as] = :linked
options[:search_field] = name
end
return options
end