app/models/organizations/organization.rb
def activate_for(quarter, enable_position_edits = false, unit = nil)
    unit = Unit.find_by_abbreviation("carlson") if unit.nil?
    unit = Unit.find(unit) unless unit.is_a?(Unit)
    oq = organization_quarters.find_or_create_by_quarter_id_and_unit_id(quarter.id, unit.id)
    oq.update_attribute(:allow_position_edits, true) if enable_position_edits
    update_attribute(:inactive, false)
    oq
  end
# Activates this Organization for the specified Quarter or does nothing if already active. Returns the OrganizationQuarter record. 
# If +enable_position_edits+ is set to +true+, then this method allows enables community partner position editing access for the
# new OrganizationQuarter. Also, if this Organization is marked Inactive, this unsets that boolean.
Activates this Organization for the specified Quarter or does nothing if already active. Returns the OrganizationQuarter record.
If +enable_position_edits+ is set to +true+, then this method allows enables community partner position editing access for the
new OrganizationQuarter. Also, if this Organization is marked Inactive, this unsets that boolean.
Activates this Organization for the specified Quarter or does nothing if already active . Returns the OrganizationQuarter record . If + enable_position_edits + is set to + true + then this method allows enables community partner position editing access for the new OrganizationQuarter . Also if this Organization is marked Inactive this unsets that boolean .
def activate_for(quarter, enable_position_edits = false, unit = nil)
    unit = Unit.find_by_abbreviation("carlson") if unit.nil?
    unit = Unit.find(unit) unless unit.is_a?(Unit)
    oq = organization_quarters.find_or_create_by_quarter_id_and_unit_id(quarter.id, unit.id)
    oq.update_attribute(:allow_position_edits, true) if enable_position_edits
    update_attribute(:inactive, false)
    oq
  end
def activate_for ( quarter , enable_position_edits = false , unit = nil ) unit = Unit . find_by_abbreviation ( "carlson" ) if unit . nil? unit = Unit . find ( unit ) unless unit . is_a? ( Unit ) oq = organization_quarters . find_or_create_by_quarter_id_and_unit_id ( quarter . id , unit . id ) oq . update_attribute ( :allow_position_edits , true ) if enable_position_edits update_attribute ( :inactive , false ) oq end
Activates this Organization for the specified Quarter or does nothing if already active.
Activates this Organization for the specified Quarter or does nothing if already active .
quarter
enable_position_edits
unit