Sha256: 8e0c48b7e2a9a1cae51601519846fddd7229e4b7a6a80e5d757f7ae041ef39d9

Contents?: true

Size: 368 Bytes

Versions: 6

Compression:

Stored size: 368 Bytes

Contents

class Avo::Actions::<%= class_name.camelize %> < Avo::BaseAction
  self.name = "<%= name.underscore.humanize %>"
  # self.visible = -> do
  #   true
  # end

  def handle(**args)
    models, fields, current_user, resource = args.values_at(:models, :fields, :current_user, :resource)

    models.each do |model|
      # Do something with your models.
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
avo-3.0.0.pre5 lib/generators/avo/templates/action.tt
avo-3.0.0.pre6 lib/generators/avo/templates/action.tt
avo-3.0.0.pre4 lib/generators/avo/templates/action.tt
avo-3.0.0.pre3 lib/generators/avo/templates/action.tt
avo-3.0.0.pre2 lib/generators/avo/templates/action.tt
avo-3.0.0.pre1 lib/generators/avo/templates/action.tt