app/controllers/spree/faqs_controller.rb in spree-faq-2.0.1 vs app/controllers/spree/faqs_controller.rb in spree-faq-2.1.0

- old
+ new

@@ -1,10 +1,10 @@ module Spree class FaqsController < StoreController helper 'spree/products' def index - @categories = QuestionCategory.all(include: :questions) + @categories = QuestionCategory.includes(:questions).load end def default_title Spree.t(:frequently_asked_questions, scope: :spree_faq) end