lib/og/store.rb in og-0.19.0 vs lib/og/store.rb in og-0.20.0

- old
+ new

@@ -79,10 +79,12 @@ # Generate finder methods. code = '' for p in klass.properties - finder = p.meta[:unique] ? 'find_one' : 'find' + # gmosx: :uniq does NOT set a unique constrain in the + # database. + finder = p.meta[:uniq] || p.meta[:unique] ? 'find_one' : 'find' code << %{ def self.find_by_#{p.symbol}(val, operator = '=', options = {}) options.update( :class => #{klass},