class Decidim::Budgets::BudgetsType
Public Instance Methods
budget(**args)
click to toggle source
# File lib/decidim/api/budgets_type.rb, line 21 def budget(**args) Budget.where(component: object).find_by(id: args[:id]) end
budgets()
click to toggle source
# File lib/decidim/api/budgets_type.rb, line 13 def budgets Budget.where(component: object).includes(:component) end