app/models/spotlight/search.rb in blacklight-spotlight-0.0.2 vs app/models/spotlight/search.rb in blacklight-spotlight-0.0.3
- old
+ new
@@ -4,10 +4,14 @@
serialize :query_params, Hash
default_scope { order("weight ASC") }
scope :published, -> { where(on_landing_page: true) }
before_create do
+ begin
self.featured_image ||= default_featured_image
+ rescue => e
+ logger.error e
+ end
end
include Blacklight::SolrHelper
def count