Sha256: b758f234c32f2ffe368b1857c6fa290067c3071d37d01594cca72e6dc23be0d8

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

- if @context.nil?
  - parts = datatable.class.name.split('::')
  - parts[parts.size-1] = 'Controller'
  - parts.join('::').constantize.new.build_context
= dropdown(variation: :dropleft, btn_class: btn_class) do
  - authorized_resource_actions(@context.route_builder, resource, for_action: action_name).select{ |x| x.show_in_datatable }.each do |a|
    = dropdown_link_to a.sym, { controller: a.controller, action: a.action, id: resource.id }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
five-two-nw-olivander-0.1.2.7 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.6 app/views/effective/resource/_actions_dropleft.html.haml
five-two-nw-olivander-0.1.2.5 app/views/effective/resource/_actions_dropleft.html.haml