« README.md » n'existait pas sur « 4fa491b6149384579fffe7c70ef5325060d13499 »
Newer
Older
# Creates a before_create callback which calls #set_guid and makes the guid serialize in to_xml
def self.included(model)
model.class_eval do
before_create :set_guid
xml_attr :guid
end
end