class ActiveAdmin::Views::Popover

Public Instance Methods

add_child(child) click to toggle source
Calls superclass method
# File lib/active_admin/views/components/popover.rb, line 17
def add_child(child)
  if @contents_root
    @contents_root << child
  else
    super
  end
end
build(options = {}, &block) click to toggle source
Calls superclass method
# File lib/active_admin/views/components/popover.rb, line 7
def build(options = {}, &block)
  options           = options.dup
  contents_root_tag = options.delete(:contents_root_tag) || :div
  options[:style]   = "display: none"

  super(options)

  @contents_root = send(contents_root_tag, class: "popover_contents")
end