Project

General

Profile

« Previous | Next » 

Revision 3de546c5

Added by Marc Dequènes about 15 years ago

  • ID 3de546c5fd20d6056caaf704957db31e58302c7e

[fix] corrected hooking methods

View differences:

lib/ldap_shadows/object.rb
self.must.collect{|attr| attr.name } - self.nonempty_attributes - ['objectClass']
end
def save
before_save_jobs
super
after_save_jobs
end
def save!
before_save_jobs
super
after_save_jobs
end
def delete
def delete(options = {})
before_delete_jobs
super
super(options)
after_save_jobs
end
......
protected
def create_or_update
before_save_jobs
r = super
after_save_jobs
r
end
def before_save_jobs
check_hooks_before(:save)
check_missing_attributes

Also available in: Unified diff