Permalink
Browse files

Replaced returning with tap to prevent deprecation warnings.

  • Loading branch information...
1 parent 47fa070 commit 30efc7ee2362d3d15c20b99e4d301b161c8dc417 @nullobject nullobject committed Feb 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/machinist/sequel.rb
View
@@ -43,7 +43,7 @@ def make(*args, &block)
end
def make_unsaved(*args)
- returning(Machinist.with_save_nerfed { make(*args) }) do |object|
+ Machinist.with_save_nerfed { make(*args) }.tap do |object|
yield object if block_given?
end
end

0 comments on commit 30efc7e

Please sign in to comment.