Class/Module Index [+]

Quicksearch

ActiveLdap::Callbacks::ClassMethods

Public Instance Methods

instantiate_with_callbacks(record) click to toggle source
# File lib/active_ldap/callbacks.rb, line 28
def instantiate_with_callbacks(record)
  object = instantiate_without_callbacks(record)

  if object.respond_to_without_attributes?(:after_find)
    object.send(:callback, :after_find)
  end

  if object.respond_to_without_attributes?(:after_initialize)
    object.send(:callback, :after_initialize)
  end

  object
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.