From bff3a3b3795d63ffd229aef05d54cc577e8c6010 Mon Sep 17 00:00:00 2001 From: Manu Date: Sun, 13 Jan 2019 16:30:56 -0500 Subject: [PATCH] use relation between cards and page models --- app/controllers/pages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index ec512d70c..eae9e7509 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -9,7 +9,7 @@ class PagesController < ApplicationController @banners = Banner.in_section('help_page').with_active if @custom_page.present? - @cards = Widget::Card.page(@custom_page.id) + @cards = @custom_page.cards render action: :custom_page else render action: params[:id]