Sha256: d8e5fd66790007865bfbe8076c11c51d7c114dbc21b0aeb1d853d0dc28c33569

Contents?: true

Size: 310 Bytes

Versions: 98

Compression:

Stored size: 310 Bytes

Contents

class <%= class_name.camelize %> < Avo::BaseAction
  self.name = '<%= name.underscore.humanize %>'

  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

98 entries across 98 versions & 1 rubygems

Version Path
avo-2.12.1.pre.1 lib/generators/avo/templates/action.tt
avo-2.12.0 lib/generators/avo/templates/action.tt
avo-2.11.3.pre.3 lib/generators/avo/templates/action.tt
avo-2.11.3.pre.2 lib/generators/avo/templates/action.tt
avo-2.11.2.pre.3 lib/generators/avo/templates/action.tt
avo-2.11.2.pre.2 lib/generators/avo/templates/action.tt
avo-2.11.2.pre.1 lib/generators/avo/templates/action.tt
avo-2.11.1.pre.3 lib/generators/avo/templates/action.tt
avo-2.11.1 lib/generators/avo/templates/action.tt
avo-2.11.1.pre.2 lib/generators/avo/templates/action.tt
avo-2.11.1.pre.1 lib/generators/avo/templates/action.tt
avo-2.11.0 lib/generators/avo/templates/action.tt
avo-2.10.3.pre.1 lib/generators/avo/templates/action.tt
avo-1.25.2 lib/generators/avo/templates/action.tt
avo-2.10.2 lib/generators/avo/templates/action.tt
avo-2.9.2.pre1 lib/generators/avo/templates/action.tt
avo-2.10.0 lib/generators/avo/templates/action.tt
avo-2.9.1.pre7 lib/generators/avo/templates/action.tt
avo-2.9.1.pre6 lib/generators/avo/templates/action.tt
avo-2.9.1.pre5 lib/generators/avo/templates/action.tt