Module: ActiveAdmin::Comments::ShowPageHelper
- Defined in:
- lib/active_admin/orm/active_record/comments/show_page_helper.rb
Overview
Adds #active_admin_comments to the show page for use and sets it up on the default main content
Instance Method Summary collapse
-
#active_admin_comments(*args, &block) ⇒ Object
Display the comments for the resource.
-
#default_main_content ⇒ Object
Add admin comments to the main content if they are turned on for the current resource.
Instance Method Details
#active_admin_comments(*args, &block) ⇒ Object
Display the comments for the resource. Same as calling #active_admin_comments_for with the current resource
18 19 20 |
# File 'lib/active_admin/orm/active_record/comments/show_page_helper.rb', line 18 def active_admin_comments(*args, &block) active_admin_comments_for(resource, *args, &block) end |
#default_main_content ⇒ Object
Add admin comments to the main content if they are turned on for the current resource
11 12 13 14 |
# File 'lib/active_admin/orm/active_record/comments/show_page_helper.rb', line 11 def default_main_content super active_admin_comments if active_admin_config.comments? end |