app/models/search.rb in blacklight-3.0.0pre6 vs app/models/search.rb in blacklight-3.0.0pre7

- old
+ new

@@ -1,5 +1,6 @@ +# -*- encoding : utf-8 -*- class Search < ActiveRecord::Base belongs_to :user serialize :query_params @@ -14,6 +15,6 @@ 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 self.destroy_all(['created_at < ? AND user_id IS NULL', Date.today - days_old]) end -end \ No newline at end of file +end