Class: Decidim::Budgets::BudgetsType
Instance Method Summary
collapse
authorized?
allowed_to?, authorized?, determine_subject_name, local_context, permission_chain
Instance Method Details
#budget(**args) ⇒ Object
18
19
20
|
# File 'decidim-budgets/lib/decidim/api/budgets_type.rb', line 18
def budget(**args)
Budget.where(component: object).find_by(id: args[:id])
end
|
#budgets ⇒ Object
14
15
16
|
# File 'decidim-budgets/lib/decidim/api/budgets_type.rb', line 14
def budgets
Budget.where(component: object).includes(:component)
end
|