Merge pull request #5078 from consul/link_to_evaluate

Show link to evaluate investments with valuation finished
This commit is contained in:
Javi Martín
2023-02-20 14:42:58 +01:00
committed by GitHub
5 changed files with 105 additions and 43 deletions

View File

@@ -100,6 +100,7 @@ class Budget
scope :by_heading, ->(heading_id) { where(heading_id: heading_id) }
scope :by_admin, ->(admin_id) { where(administrator_id: admin_id) }
scope :by_tag, ->(tag_name) { tagged_with(tag_name).distinct }
scope :visible_to_valuator, ->(valuator) { visible_to_valuators.by_valuator(valuator) }
scope :for_render, -> { includes(:heading) }