app/models/patient.rb
# Checks and sets unset fields to default values.
#
# === Parameters:
# - +params_hash+ => Hash of additional parameter values for attribute defaults override.
#
Checks and sets unset fields to default values.
Parameters:
+params_hash+ => Hash of additional parameter values for attribute defaults override.
Checks and sets unset fields to default values . Parameters : + params_hash + = > Hash of additional parameter values for attribute defaults override .
def preset_default_values( params_hash = {} )
    self
  end
def preset_default_values ( params_hash = { } ) self end
Checks and sets unset fields to default values.
Checks and sets unset fields to default values .
# XXX AmbGest 1.10 does not have a Firm entity: #    unless self.firm #      begin #        if self.user_id and (default_firm_id = LeUser.find(self.user_id).firm_id) #          self.firm_id = default_firm_id #        end #      rescue #        self.firm_id = nil #      end #    end # Set default date for this entry: #    self.date_last_met = Time.now unless self.date_last_met
params_hash