Sha256: d7b5b030502d95d9df988631a22b972fef50752df2af1d5d4fd60969f982f088
Contents?: true
Size: 638 Bytes
Versions: 50
Compression:
Stored size: 638 Bytes
Contents
require 'active_admin/views/components/popover' module ActiveAdmin module Views # Build an ActionListPopover class ActionListPopover < ActiveAdmin::Views::Popover builder_method :action_list_popover def build(*args, &block) @contents = ul :class => "popover_contents" options = args.extract_options! super(options) end def action(title, url, *args) options = args.extract_options! within @contents do li do text_node link_to( title, url, options ) end end end end end end
Version data entries
50 entries across 50 versions & 2 rubygems