class User < ActiveRecord::Base
clowne_config do
include_associations :profile
nullify :email
# whatever available for your cloners,
# active_record adapter is set implicitly here
end
end
cloned_user = user.clowne(traits: my_traits, **params)
# it's just a shortcut for
cloned_user = user.class.cloner_class.call(user, *args)
This is an optional feature, should be explicitly enabled (required).
To write things like this:
This is an optional feature, should be explicitly enabled (required).