This rule was added in rubocop 1.79. We were inconsistent about it, so we're adding it to get more consistency.
13 lines
256 B
Ruby
13 lines
256 B
Ruby
class Admin::Widget::CardsController < Admin::BaseController
|
|
include Admin::Widget::CardsActions
|
|
|
|
load_and_authorize_resource :card, class: "Widget::Card"
|
|
helper_method :index_path
|
|
|
|
private
|
|
|
|
def index_path
|
|
admin_homepage_path
|
|
end
|
|
end
|