From 0c152012598203a2ffefd8108bd67101075543cd Mon Sep 17 00:00:00 2001 From: BryanEliDimas Date: Fri, 7 Aug 2020 16:21:57 -0500 Subject: [PATCH] Missed a comment --- lib/fetch_book_data.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fetch_book_data.rb b/lib/fetch_book_data.rb index c473d7893..b9c44ea35 100644 --- a/lib/fetch_book_data.rb +++ b/lib/fetch_book_data.rb @@ -8,9 +8,9 @@ class FetchBookData CACHE_DURATION = 1.day def titles - # @titles ||= Rails.cache.fetch('BookData.titles', expires_in: CACHE_DURATION) do + @titles ||= Rails.cache.fetch('BookData.titles', expires_in: CACHE_DURATION) do fetch_titles - # end + end end def fetch_titles