docs/after_persist.md in clowne-1.2.0 vs docs/after_persist.md in clowne-1.3.0

- old
+ new

@@ -28,11 +28,11 @@ class UserCloner < Clowne::Cloner include_association :posts, params: true after_persist do |origin, clone, mapper:, **| cloned_bio = mapper.clone_of(origin.bio) - clone.update_attributes(bio_id: cloned_bio.id) + clone.update(bio_id: cloned_bio.id) end end class PostCloner < Clowne::Cloner after_persist do |_, clone, run_job:, **| @@ -48,10 +48,10 @@ ```ruby # prepare data user = User.create posts = Array.new(3) { Post.create(user: user) } bio = posts.sample -user.update_attributes(bio_id: bio.id) +user.update(bio_id: bio.id) operation = UserCloner.call(user, run_job: true) # => <#Clowne::Utils::Operation ...> clone = operation.to_record