docs/finalize.md in clowne-0.1.0 vs docs/finalize.md in clowne-0.2.0
- old
+ new
@@ -17,19 +17,19 @@
record.email = params[:email]
end
end
end
-clone = UserCloner.call(user)
-clone.name
+cloned = UserCloner.call(user)
+cloned.name
# => 'This is copy!'
-clone.email == 'clone@example.com'
+cloned.email == 'clone@example.com'
# => false
-clone2 = UserCloner.call(user, traits: :change_email)
-clone2.name
+cloned2 = UserCloner.call(user, traits: :change_email)
+cloned2.name
# => 'This is copy!'
-clone2.email
+cloned2.email
# => 'clone@example.com'
```
Finalization blocks are called at the end of the [cloning process](execution_order.md).