Sha256: a6d9ceee558e54f4cc9aa55744528124993af3913cee7c1e834fe3b069f4fb8d
Contents?: true
Size: 602 Bytes
Versions: 10
Compression:
Stored size: 602 Bytes
Contents
# frozen_string_literal: true module Mensa # Provide additional links at the end of the row, with an icon, link and a name # # action :delete do # link { |contact| delete_contact_path(contact) } # link_attributes "data-turbo-method" => "delete" # icon "fa-xmark" # end class Action include ConfigReaders attr_reader :name, :table, :config def initialize(name, config:, table:) @name = name @table = table @config = config end config_reader :link config_reader :link_attributes config_reader :icon config_reader :show end end
Version data entries
10 entries across 10 versions & 1 rubygems