Sha256: b9f1b59534b5f01c60ce414096768a4848634f9082386ffacf8a3029297f18f1

Contents?: true

Size: 561 Bytes

Versions: 57

Compression:

Stored size: 561 Bytes

Contents

module Plutonium
  module Core
    module Actions
      class DestroyAction < BasicAction
        private

        def action_options
          {
            icon: "outline/trash-bin",
            route_options: Plutonium::Core::Action::RouteOptions.new(method: :delete),
            color: :red,
            confirmation: "Are you sure?",
            turbo_frame: "_top",
            collection_record_action: true,
            record_action: true,
            category: :standard,
            position: 100
          }
        end
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
plutonium-0.12.13 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.12 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.11 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.10 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.9 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.8 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.7 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.5 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.4 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.3 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.2 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.1 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.12.0 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.11.2 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.11.1 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.11.0 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.8.0 lib/plutonium/core/actions/destroy_action.rb