Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replaced returning with tap to prevent deprecation warnings.

  • Loading branch information...
commit 30efc7ee2362d3d15c20b99e4d301b161c8dc417 1 parent 47fa070
@nullobject nullobject authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/machinist/sequel.rb
View
2  lib/machinist/sequel.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.