# File lib/active_samba_ldap/user.rb, line 19 def fill_default_values(options={}) result = super return result unless samba_available? options = options.stringify_keys subst = Proc.new do |key| value = options[key] if value substitute_template(value) else substituted_value(key) end end self.samba_home_path ||= subst["user_home_unc"] self.samba_home_drive ||= subst["user_home_drive"].sub(/([^:])$/, "\\1:") self.samba_profile_path ||= subst["user_profile"] self.samba_logon_script ||= subst["user_logon_script"] end
Generated with the Darkfish Rdoc Generator 2.