# File lib/active_ldap/callbacks.rb, line 5 def self.append_features(base) super base.class_eval do include ActiveRecord::Callbacks unless respond_to?(:instantiate_with_callbacks) extend ClassMethods class << self alias_method_chain :instantiate, :callbacks end alias_method_chain :initialize, :callbacks end def callback(method) super rescue ActiveRecord::ActiveRecordError raise Error, $!.message end end end
Generated with the Darkfish Rdoc Generator 2.