百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

clowne

> 后端框架
开源

一个用于克隆模型的灵活工具

325 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个用于克隆模型的灵活工具

Clowne

A flexible gem for cloning your models. Clowne focuses on ease of use and provides the ability to connect various ORM adapters.

Read Evil Martians Chronicles to learn about possible use cases.

Documentation

Clowne is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.

Installation

To install Clowne with RubyGems:

ruby
gem install clowne

Or add this line to your application's Gemfile:

ruby
gem "clowne"

Quick Start

Assume that you have the following model:

ruby
class User  

operation = UserCloner.call(user, email: "[email protected]")
# => 

operation.to_record
# => 

operation.persist!
# => true

cloned = operation.to_record
# => 

cloned.login
# => nil
cloned.email
# => "fake@example.com"

# associations:
cloned.posts.count == user.posts.count
# => true
cloned.profile.name
# => nil

Take a look at our documentation for more info!

Supported ORM adapters

Adapter 1:1 *:1 1:M M:M
Active Record has_one belongs_to has_many has_and_belongs_to
Sequel one_to_one - one_to_many many_to_many

Maintainers

  • Vladimir Dementyev

  • Nikolay Sverchkov

License

The gem is available as open source under the terms of the MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyactiverecordcloninghacktoberfestrails

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架