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.16.5 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.16.4 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.16.3 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.16.1 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.16.0 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.24 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.23 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.22 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.21 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.20 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.19 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.18 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.17 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.16 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.15 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.14 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.13 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.12 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.11 lib/plutonium/core/actions/destroy_action.rb
plutonium-0.15.10 lib/plutonium/core/actions/destroy_action.rb