app/controllers/admin/university/people/authors_controller.rb
class Admin::University::People::AuthorsController < Admin::University::ApplicationController
load_and_authorize_resource :person,
class: University::Person,
through: :current_university,
through_association: :people,
parent: false
include Admin::HasStaticAction
include Admin::Localizable
protected
# On every other action, we need to load the localization
def load_localization
@l10n = super.author
end
def resource_name
"person"
end
end