README.txt in dm-ldap-adapter-0.3.1 vs README.txt in dm-ldap-adapter-0.3.2

- old
+ new

@@ -86,10 +86,20 @@ select * from users where name != 'sd'; gives the same result when *all* names are `NULL` !!! -OR conditions can be done with :conditions option but only of the form "<property_name> <comparator> <value> [or <property_name> <comparator> <value>]*" where the comparator is one of "=", "like" +=== OR conditions + +or-conditions can be done with :conditions option but only of the form "<property_name> <comparator> <value> [or <property_name> <comparator> <value>]*" where the comparator is one of "=", "like". it can be also combined with extra ANDs like this example + + Contact.all(:name.like => "A%", :conditions => ["phone like '+49%' or mobile like '+49%'"]) + +=== using the ruby-ldap gem + +just require the right facade before require the adapter: + + require 'ldap/ruby_ldap_facade' === multiple repositories most probably you have to work with ldap as one repository and a database as a second repository. for me it worked best to define the `default_repository` for each model in the model itself: