Add back link to cards form

As we normally do in other places.
This commit is contained in:
Senén Rodero Rodríguez
2021-01-11 17:43:46 +01:00
committed by Javi Martín
parent 1f6ca4980f
commit 3aaf5ce151
5 changed files with 16 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ class Admin::SiteCustomization::CardsController < Admin::SiteCustomization::Base
include Admin::Widget::CardsActions
load_and_authorize_resource :page, class: "::SiteCustomization::Page"
load_and_authorize_resource :card, through: :page, class: "Widget::Card"
helper_method :index_path
def index
end