docs/finalize.md in clowne-1.2.0 vs docs/finalize.md in clowne-1.3.0
- old
+ new
@@ -2,15 +2,15 @@
To apply custom transformations to the cloned record, you can use the `finalize` declaration:
```ruby
class UserCloner < Clowne::Cloner
- finalize do |_source, record, _params|
+ finalize do |_source, record, **_params|
record.name = "This is copy!"
end
trait :change_email do
- finalize do |_source, record, params|
+ finalize do |_source, record, **params|
record.email = params[:email]
end
end
end