RubyGems Navigation menu

null_object_models 1.0.0

Null Object Models is a gem that provides finder method(s) extensions to ActiveRecord::Base objects. These finder methods will return either default or defined null objects if an object is not found with the given ID(s). This is very useful for preventing nil errors. I recommend using this gem if you have dangling records and have yet to implement some sort of soft destroy implementation.

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 1.0.0 - October 26, 2016 (19.0 KB)

Runtime 依赖 (1):

rails ~> 5.0

Development 依赖 (4):

pg ~> 0.19
pry-byebug ~> 3.4
rspec-rails ~> 3.5

业主:

作者:

  • Andrew Szczepanski

SHA 256 校验和:

92d5fdd956cdb458150a0e167a2c20ee34835607b2b6f1f359df755e3d03ab86

下载总量 2,462

这个版本 2,462

许可:

MIT

需要的 Ruby 版本: >= 0

链接: