24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/activeadmin/favorites/view_lens/patches.rb', line 24
def row(*args, &block)
layout = Applicator.current_layout
title = args[0]
options = args.last.is_a?(Hash) ? args.last : {}
row_id = Applicator.(title, options)
resource_key = helpers.active_admin_config&.resource_name&.route_key
if resource_key.present? && row_id.present?
Applicator.register_row(resource_key: resource_key, id: row_id, label: title.to_s)
end
return if layout&.hidden_show_row?(row_id)
super
end
|