lib/mongomodel/support/scope/spawn_methods.rb in mongomodel-0.4.5 vs lib/mongomodel/support/scope/spawn_methods.rb in mongomodel-0.4.6

- old
+ new

@@ -12,9 +12,11 @@ SINGLE_VALUE_METHODS.each do |method| value = scope.send(:"#{method}_value") result.send(:"#{method}_value=", value) if value end + result.on_load_proc = scope.on_load_proc + result end def except(*exceptions) result = self.class.new(klass)