Module: Snapshot::OfficeQueries
- Included in:
- Snapshot
- Defined in:
- app/models/snapshot/office_queries.rb
Instance Method Summary collapse
Instance Method Details
#query_offices_with_disabled_access ⇒ Object
2 3 4 5 |
# File 'app/models/snapshot/office_queries.rb', line 2 def query_offices_with_disabled_access firm_ids = publishable_firms.map(&:id) Office.includes(:firm).where(disabled_access: true, firms: { id: firm_ids }) end |