mongoid_denormalize:用于使Mongoid模型中的关联属性反规范化的帮助器模块

时间:2021-04-29 23:05:04
【文件属性】:
文件名称:mongoid_denormalize:用于使Mongoid模型中的关联属性反规范化的帮助器模块
文件大小:14KB
文件格式:ZIP
更新时间:2021-04-29 23:05:04
Ruby Mongoid ::反规范化 注意:我不再积极维护此模块,并且不知道它是否与更新版本的Mongoid兼容。 如果您想拥有此存储库的所有权,请告诉我。 用于对Mongoid模型中的关联属性进行归一化的Helper模块。 为什么要非正规化? 阅读。 提取自 ,用于生产。 安装 将宝石添加到您的Bundler Gemfile : gem 'mongoid_denormalize' 或使用RubyGems安装: $ gem install mongoid_denormalize 用法 在您的模型中: # Include the helper method include Mongoid::Denormalize # Define your denormalized fields denormalize :name, :email, :from => :user 例子 class User
【文件预览】:
mongoid_denormalize-master
----.gitignore(38B)
----Guardfile(300B)
----mongoid_denormalize.gemspec(2KB)
----.rspec(8B)
----LICENSE(1KB)
----perf.rb(842B)
----spec()
--------app()
--------spec_helper.rb(750B)
--------mongoid.yml(110B)
--------mongoid_denormalize_spec.rb(5KB)
----README.md(5KB)
----lib()
--------mongoid_denormalize.rb(4KB)
--------railties()
--------mongoid_denormalize()
----Gemfile(201B)
----Rakefile(175B)
----Gemfile.lock(2KB)

网友评论