docs/finalize.md in clowne-0.2.0 vs docs/finalize.md in clowne-1.0.0
- old
+ new
@@ -17,16 +17,16 @@
record.email = params[:email]
end
end
end
-cloned = UserCloner.call(user)
+cloned = UserCloner.call(user).to_record
cloned.name
# => 'This is copy!'
cloned.email == 'clone@example.com'
# => false
-cloned2 = UserCloner.call(user, traits: :change_email)
+cloned2 = UserCloner.call(user, traits: :change_email).to_record
cloned2.name
# => 'This is copy!'
cloned2.email
# => 'clone@example.com'
```