Class: Decidim::Budgets::BudgetsType
- Inherits:
-
Core::ComponentType
- Object
- Core::ComponentType
- Decidim::Budgets::BudgetsType
- Defined in:
- lib/decidim/api/budgets_type.rb
Instance Method Summary collapse
Instance Method Details
#budget(**args) ⇒ Object
18 19 20 |
# File '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 'lib/decidim/api/budgets_type.rb', line 14 def budgets Budget.where(component: object).includes(:component) end |