Adds fixed items model/assoc to activerecord-gitlab gem
Model concern allows classes with fixed items to have active record like methods (all, where, find_by, find). The has one association can be used on models to establish an association to a fixed items model.
显示
- gems/activerecord-gitlab/README.md 2 个添加, 2 个删除gems/activerecord-gitlab/README.md
- gems/activerecord-gitlab/lib/active_record/fixed_items_model.rb 4 个添加, 0 个删除...ctiverecord-gitlab/lib/active_record/fixed_items_model.rb
- gems/activerecord-gitlab/lib/active_record/fixed_items_model/has_one.rb 82 个添加, 0 个删除...ord-gitlab/lib/active_record/fixed_items_model/has_one.rb
- gems/activerecord-gitlab/lib/active_record/fixed_items_model/model.rb 96 个添加, 0 个删除...ecord-gitlab/lib/active_record/fixed_items_model/model.rb
- gems/activerecord-gitlab/lib/activerecord-gitlab.rb 2 个添加, 0 个删除gems/activerecord-gitlab/lib/activerecord-gitlab.rb
- gems/activerecord-gitlab/spec/active_record/fixed_items_model/has_one_spec.rb 157 个添加, 0 个删除...tlab/spec/active_record/fixed_items_model/has_one_spec.rb
- gems/activerecord-gitlab/spec/active_record/fixed_items_model/model_spec.rb 167 个添加, 0 个删除...gitlab/spec/active_record/fixed_items_model/model_spec.rb
- gems/activerecord-gitlab/spec/spec_helper.rb 1 个添加, 0 个删除gems/activerecord-gitlab/spec/spec_helper.rb
加载中
想要评论请 注册 或 登录