app/models/search.rb in blacklight-6.0.2 vs app/models/search.rb in blacklight-6.1.0

- old
+ new

@@ -16,11 +16,11 @@ self.user_id? end # delete old, unsaved searches def self.delete_old_searches(days_old) - raise ArgumentError.new('days_old is expected to be a number') unless days_old.is_a?(Numeric) - raise ArgumentError.new('days_old is expected to be greater than 0') if days_old <= 0 + raise ArgumentError, 'days_old is expected to be a number' unless days_old.is_a?(Numeric) + raise ArgumentError, 'days_old is expected to be greater than 0' if days_old <= 0 self.destroy_all(['created_at < ? AND user_id IS NULL', Time.zone.today - days_old]) end end