class Object

Public Instance Methods

build(resource) click to toggle source
Calls superclass method
# File lib/adminterface/extensions/orm/active_record/comments/views/active_admin_comments.rb, line 111
def build(resource)
  if authorized?(ActiveAdmin::Auth::READ, ActiveAdmin::Comment)
    @resource = resource
    @comments =
      active_admin_authorization
        .scope_collection(ActiveAdmin::Comment.find_for_resource_in_namespace(resource, active_admin_namespace.name)
        .includes(:author).public_send(Kaminari.config.page_method_name, params[:page])).per(configs.comments_per_page)
    super(title, for: resource)
    build_comments
  end
end
choice_wrapping(html_options, &block) click to toggle source
# File lib/adminterface/extensions/inputs/filters/check_boxes_input.rb, line 9
def choice_wrapping(html_options, &block)
  template.content_tag(:li, template.capture(&block), html_options)
end
choices_group_wrapping(&block) click to toggle source
# File lib/adminterface/extensions/inputs/filters/check_boxes_input.rb, line 5
def choices_group_wrapping(&block)
  template.content_tag(:ol, template.capture(&block), choices_group_wrapping_html_options)
end
closing_tag() click to toggle source
Calls superclass method
# File lib/adminterface/extensions/views/columns.rb, line 41
def closing_tag
  super
end