personal-book/app/controllers/desktop/books_controller.rb

23 lines
416 B
Ruby

class Desktop::BooksController < DesktopAdminController
include Admin::PersonalBooksHelper
def menu
user = OrbitHelper.current_user
[
{
"title" => "List",
"layout" => "list"
},
{
"title" => "Add/Edit",
"layout" => "form",
"new_path" => "/#{I18n.locale.to_s}/admin/books/new?member_profile_id=#{user.member_profile_id.to_param}",
}
]
end
def list
get_paper_list
end
end