Sha256: a745ad2326f796b6974595d80f2a11cbf0dd3c8e20c3b2e6bf4be6f1f98f1aad

Contents?: true

Size: 653 Bytes

Versions: 153

Compression:

Stored size: 653 Bytes

Contents

module ActiveAdmin
  module Comments

    # Adds #active_admin_comments to the show page for use
    # and sets it up on the default main content
    module ShowPageHelper

      # Add admin comments to the main content if they are
      # turned on for the current resource
      def default_main_content
        super
        active_admin_comments if active_admin_config.comments?
      end

      # Display the comments for the resource. Same as calling
      # #active_admin_comments_for with the current resource
      def active_admin_comments(*args, &block)
        active_admin_comments_for(resource, *args, &block)
      end
    end

  end
end

Version data entries

153 entries across 153 versions & 13 rubygems

Version Path
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-2.0.0.rc1 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-rb-1.4.0 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-1.4.3 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-1.4.2 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-1.4.1 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-1.4.0 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-1.3.1 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-1.3.0 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-1.2.1 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin-1.2.0 lib/active_admin/orm/active_record/comments/show_page_helper.rb
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/lib/active_admin/orm/active_record/comments/show_page_helper.rb
yousty-activeadmin-1.0.17.pre lib/active_admin/orm/active_record/comments/show_page_helper.rb