AyuntamientoMadrid/participacion

View on GitHub
app/components/admin/budgets/table_actions_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Admin::Budgets::TableActionsComponent < ApplicationComponent
  attr_reader :budget

  def initialize(budget)
    @budget = budget
  end

  private

    def actions_component
      Admin::TableActionsComponent.new(
        budget,
        edit_path: admin_budget_path(budget),
        actions: [:edit]
      )
    end
end