Using buttons for non-GET actions is better for accessibility, as
mentioned in commit 5311daadf.
14 lines
272 B
Ruby
14 lines
272 B
Ruby
class Admin::Budgets::ActionsComponent < ApplicationComponent
|
|
attr_reader :budget
|
|
|
|
def initialize(budget)
|
|
@budget = budget
|
|
end
|
|
|
|
private
|
|
|
|
def action(action_name, **options)
|
|
render Admin::ActionComponent.new(action_name, budget, **options)
|
|
end
|
|
end
|