app/models/concerns/spotlight/exhibit_analytics.rb in blacklight-spotlight-2.2.1 vs app/models/concerns/spotlight/exhibit_analytics.rb in blacklight-spotlight-2.3.0

- old
+ new

@@ -2,9 +2,10 @@ ## # Exhibit mixin to provide analytics data module ExhibitAnalytics def analytics(start_date = 1.month, path = nil) return OpenStruct.new unless analytics_provider && analytics_provider.enabled? + @analytics ||= {} @analytics[start_date] ||= begin analytics_provider.exhibit_data(path || self, start_date: start_date.ago) end end