lib/active_ldap/persistence.rb in activeldap-3.1.0 vs lib/active_ldap/persistence.rb in activeldap-3.1.1
- old
+ new
@@ -1,6 +1,17 @@
module ActiveLdap
module Persistence
+ # new_entry?
+ #
+ # Return whether the entry is new entry in LDAP or not
+ def new_entry?
+ @new_entry
+ end
+
+ # Return whether the entry is saved entry or not.
+ def persisted?
+ not new_entry?
+ end
# destroy
#
# Delete this entry from LDAP
def destroy