app/models/organizations/organization_quarter.rb
# Updates the organization quater's position counts.
# Called when a position is created, saved or destroyed
Updates the organization quater's position counts.
Called when a position is created, saved or destroyed
Updates the organization quater ' s position counts . Called when a position is created saved or destroyed
def update_position_counts!
    counts = {
      :in_progress_positions_count => positions.in_progress.count,
      :pending_positions_count => positions.pending.count,
      :approved_positions_count => positions.approved.count
    }
    self.update_attributes(counts)
  end
def update_position_counts! counts = { :in_progress_positions_count => positions . in_progress . count , :pending_positions_count => positions . pending . count , :approved_positions_count => positions . approved . count } self . update_attributes ( counts ) end
Updates the organization quater's position counts.
Updates the organization quater ' s position counts .