app/models/user.rb
# Please use consistent format for naming Users across the site.  At the
# moment, this means using #full_name unless you KNOW you have an exception.
Please use consistent format for naming Users across the site.  At the
moment, this means using #full_name unless you KNOW you have an exception.
Please use consistent format for naming Users across the site . At the moment this means using #full_name unless you KNOW you have an exception .
def full_name(options={})
    reload_all_values_if_missing([:curator_level_id, :given_name, :family_name,
      :username])
    if is_curator? 
      return build_full_name
    else
      if options[:ignore_empty_family_name] || username.blank?
        return build_full_name unless given_name.blank? && family_name.blank?
      end
      return username if given_name.blank? || family_name.blank?
      return build_full_name
    end
  end
def full_name ( options = { } ) reload_all_values_if_missing ( [ :curator_level_id , :given_name , :family_name , :username ] ) if is_curator? return build_full_name else if options [ :ignore_empty_family_name ] || username . blank? return build_full_name unless given_name . blank? && family_name . blank? end return username if given_name . blank? || family_name . blank? return build_full_name end end
Please use consistent format for naming Users across the site.
Please use consistent format for naming Users across the site .
# MUST show their name: # Other users show their full name when available, otherwise their # username:
options
<not_specific>