Skip to content

Commit

Permalink
update editor/pages
Browse files Browse the repository at this point in the history
removes redundant `as: 'Pages'`

remove `config.clear_action_items!`

remove redundant action_item button for new page
  • Loading branch information
PhilipDeFraties committed Apr 22, 2024
1 parent 3b219a5 commit 4b49463
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/admin/editor/pages.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ActiveAdmin.register Page, as: 'Pages', namespace: :editor do
ActiveAdmin.register Page, namespace: :editor do
menu if: proc { current_user.has_role?(:admin) || current_user.has_role?(:page_group_editor, :any) }

permit_params :title,
Expand Down Expand Up @@ -73,13 +73,8 @@
]

config.filters = false
config.clear_action_items!
config.batch_actions = false

action_item :new, only: :index do
link_to 'New Page', new_editor_page_path
end

index download_links: false do
selectable_column
column(:title) { |page| link_to(page.title, admin_page_path(page)) }
Expand Down

0 comments on commit 4b49463

Please sign in to comment.