lib/machinist/mongo_mapper.rb in machinist_mongo-1.2.0 vs lib/machinist/mongo_mapper.rb in machinist_mongo-2.0.0.pre
- old
+ new
@@ -55,10 +55,10 @@
end
lathe.object(&block)
end
def make_unsaved(*args)
- Machinist.with_save_nerfed{ make(*args) }.tap do |object|
+ returning(Machinist.with_save_nerfed { make(*args) }) do |object|
yield object if block_given?
end
end
def plan(*args)