Sha256: c9efdd618ce848dfe346ac33db115a3e70bc10e374c27d62fb001f66ae55b310

Contents?: true

Size: 343 Bytes

Versions: 122

Compression:

Stored size: 343 Bytes

Contents

class Avo::Actions::<%= class_name.camelize %> < Avo::BaseAction
<%= configuration_options %>
  # self.visible = -> do
  #   true
  # end

  # def fields
  #   # Add Action fields here
  # end

  def handle(query:, fields:, current_user:, resource:, **args)
    query.each do |record|
      # Do something with your records.
    end
  end
end

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
avo-3.18.1.tw4 lib/generators/avo/templates/action.tt
avo-3.18.1 lib/generators/avo/templates/action.tt
avo-3.18.0.tw4 lib/generators/avo/templates/action.tt
avo-3.18.0 lib/generators/avo/templates/action.tt
avo-3.17.9.beta2 lib/generators/avo/templates/action.tt
avo-3.17.9.beta1 lib/generators/avo/templates/action.tt
avo-3.17.9.tw4 lib/generators/avo/templates/action.tt
avo-3.17.9 lib/generators/avo/templates/action.tt
avo-3.17.8.tw4 lib/generators/avo/templates/action.tt
avo-3.17.8 lib/generators/avo/templates/action.tt
avo-3.17.7 lib/generators/avo/templates/action.tt
avo-3.17.6.tw4 lib/generators/avo/templates/action.tt
avo-3.17.6 lib/generators/avo/templates/action.tt
avo-3.17.5 lib/generators/avo/templates/action.tt
avo-3.17.4 lib/generators/avo/templates/action.tt
avo-3.17.3 lib/generators/avo/templates/action.tt
avo-3.17.5.tw4 lib/generators/avo/templates/action.tt
avo-3.17.4.tw4 lib/generators/avo/templates/action.tt
avo-3.17.3.tw4 lib/generators/avo/templates/action.tt
avo-3.17.2.tw4 lib/generators/avo/templates/action.tt