molten-trunk/molten5_withgrid/app/models/sfcontact.rb
# Finds the custom home page available to this user. If none is found, nil is returned. 
Finds the custom home page available to this user. If none is found, nil is returned.
Finds the custom home page available to this user . If none is found nil is returned .
def custom_home_page
    page = get_home_page(company)
    if page.nil? and company.ancestors.any?
      company.ancestors.each do |c|
        page = get_home_page(c)
        if page then return page end
      end
    end
    return page
  end
def custom_home_page page = get_home_page ( company ) if page . nil? and company . ancestors . any? company . ancestors . each do | c | page = get_home_page ( c ) if page then return page end end end return page end
Finds the custom home page available to this user.
Finds the custom home page available to this user .