Allow cards table actions to receive options
Just like we sometimes override options in the generic table actions component, we're going to do the same thing with the cards table actions.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
class Admin::Widget::Cards::TableComponent < ApplicationComponent
|
||||
attr_reader :cards, :no_cards_message
|
||||
attr_reader :cards, :no_cards_message, :options
|
||||
|
||||
def initialize(cards, no_cards_message:)
|
||||
def initialize(cards, no_cards_message:, **options)
|
||||
@cards = cards
|
||||
@no_cards_message = no_cards_message
|
||||
@options = options
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user