Project

General

Profile

Download (183 Bytes) Statistics
| Branch: | Tag: | Revision:
7b832340 Marc Dequènes (Duck)
953a2b4d Marc Dequènes (Duck)
def self.hook_before_create(item)
7b832340 Marc Dequènes (Duck)
unless item.attribute_present?('cn')
cn = item.surname || ""
cn = item.givenName + " " + cn if item.givenName
item.cn = cn
end
end