Sha256: f5ddcd66fcf225fe64073842fed457c33d5a52e43301655fd88425815f82c4a7

Contents?: true

Size: 276 Bytes

Versions: 31

Compression:

Stored size: 276 Bytes

Contents

module Avo
  module Actions
    class <%= class_name.camelize %> < Action
      self.name = '<%= name.underscore.humanize %>'

      def handle(models:, fields:)
        models.each do |model|
          # Do something with your models.
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
avo-1.3.3 lib/generators/avo/templates/action.tt
avo-1.3.2 lib/generators/avo/templates/action.tt
avo-1.3.1 lib/generators/avo/templates/action.tt
avo-1.3.0 lib/generators/avo/templates/action.tt
avo-1.2.11.pre.4 lib/generators/avo/templates/action.tt
avo-1.2.11.pre.3 lib/generators/avo/templates/action.tt
avo-1.2.11.pre.2 lib/generators/avo/templates/action.tt
avo-1.2.11.pre.1 lib/generators/avo/templates/action.tt
avo-1.2.10 lib/generators/avo/templates/action.tt
avo-1.2.9 lib/generators/avo/templates/action.tt
avo-1.2.8 lib/generators/avo/templates/action.tt
avo-1.2.7 lib/generators/avo/templates/action.tt
avo-1.2.6 lib/generators/avo/templates/action.tt
avo-1.2.6.pre.1 lib/generators/avo/templates/action.tt
avo-1.2.5 lib/generators/avo/templates/action.tt
avo-1.2.4 lib/generators/avo/templates/action.tt
avo-1.2.3 lib/generators/avo/templates/action.tt
avo-1.3.0.pre.1 lib/generators/avo/templates/action.tt
avo-1.2.2 lib/generators/avo/templates/action.tt
avo-1.1.0 lib/generators/avo/templates/action.tt