Skip to content
代码片段 群组 项目
未验证 提交 3c0b245a 编辑于 作者: Igor Drozdov's avatar Igor Drozdov 提交者: GitLab
浏览文件

Use Set for aliases_by_attribute_name collection

It overrides the Rails method to use Set instead of an Array

- https://github.com/rails/rails/blob/main/activemodel/lib/active_model/attribute_methods.rb#L383

In this case, when `alias_attribute` is called multiple times for the same attribute, the number
doesn't grow.
上级 a4c3e760
No related branches found
No related tags found
无相关合并请求
显示 137 个添加79 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册