app/models/service_learning/service_learning_course.rb
def toggle_finalized(value = nil)
    if value === nil
      new_value = !finalized?
    else
      new_value = value
    end
    update_attribute :finalized, new_value
    update_attribute :registration_open_time, nil if open? && !finalized?
    finalized?
  end
# Toggles the +finalized+ attribute for this course. If marking this course as un-finalized and the course is
#  currently marked as +open+, then unset the +open+ attribute as well. You can also pass a new value (true or false)
# as a parameter to force it to that value.
Toggles the +finalized+ attribute for this course. If marking this course as un-finalized and the course is
currently marked as +open+, then unset the +open+ attribute as well. You can also pass a new value (true or false)
as a parameter to force it to that value.
Toggles the + finalized + attribute for this course . If marking this course as un - finalized and the course is currently marked as + open + then unset the + open + attribute as well . You can also pass a new value ( true or false ) as a parameter to force it to that value .
def toggle_finalized(value = nil)
    if value === nil
      new_value = !finalized?
    else
      new_value = value
    end
    update_attribute :finalized, new_value
    update_attribute :registration_open_time, nil if open? && !finalized?
    finalized?
  end
def toggle_finalized ( value = nil ) if value === nil new_value = ! finalized? else new_value = value end update_attribute :finalized , new_value update_attribute :registration_open_time , nil if open? && ! finalized? finalized? end
Toggles the +finalized+ attribute for this course.
Toggles the + finalized + attribute for this course .
value