app/models/organizations/organization_quarter.rb
def status
    s = statuses.find(:first, :order => "updated_at DESC")
    if s.nil?
      s = statuses.create :organization_quarter_status_type_id => OrganizationQuarterStatusType.find_or_create_by_title("Needs Contact").id
      s.type.sequence = 0; s.type.save;
    end
    s
  end
# The current status type of this organization for the current quarter. If none is defined, create a new status with the
# first default, which is "Needs Contact".
The current status type of this organization for the current quarter. If none is defined, create a new status with the
first default, which is "Needs Contact".
The current status type of this organization for the current quarter . If none is defined create a new status with the first default which is " Needs Contact " .
def status
    s = statuses.find(:first, :order => "updated_at DESC")
    if s.nil?
      s = statuses.create :organization_quarter_status_type_id => OrganizationQuarterStatusType.find_or_create_by_title("Needs Contact").id
      s.type.sequence = 0; s.type.save;
    end
    s
  end
def status s = statuses . find ( :first , :order => "updated_at DESC" ) if s . nil? s = statuses . create :organization_quarter_status_type_id => OrganizationQuarterStatusType . find_or_create_by_title ( "Needs Contact" ) . id s . type . sequence = 0 ; s . type . save ; end s end
The current status type of this organization for the current quarter.
The current status type of this organization for the current quarter .