This rule was added in rubocop 1.79. We were inconsistent about it, so we're adding it to get more consistency.
17 lines
428 B
Ruby
17 lines
428 B
Ruby
class Admin::SiteCustomization::CardsController < Admin::SiteCustomization::BaseController
|
|
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
|
|
|
|
private
|
|
|
|
def index_path
|
|
admin_site_customization_page_widget_cards_path(@page)
|
|
end
|
|
end
|