Sha256: b8e5b652d1429dd4df528f720a2753e4295d17456860abce329439104b30d465

Contents?: true

Size: 402 Bytes

Versions: 4

Compression:

Stored size: 402 Bytes

Contents

- route_builder = @context&.route_builder || datatable.class::ROUTE_BUILDER
= dropdown(variation: :dropleft, btn_class: btn_class) do
  - authorized_resource_actions(route_builder, resource, for_action: action_name).select{ |x| x.show_in_datatable }.each do |a|
    - path = a.path_helper.is_a?(Proc) ? a.path_helper.call(resource) : send(a.path_helper, resource.id)
    = dropdown_link_to a.sym, path

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.1.2.17 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.16 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.15 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.14 app/views/effective/resource/_actions_dropleft.html.haml