RubyGems Navigation menu

activerecord-take_or_find 1.0.0

Gem activerecord-take_or_find provides a method on your ActiveRecord models. Depending on the passed argument, which can either be a number (ID) or instance of that model, it lets you either find a record by the ID or use the record itself.

Gemfile:
=

安装:
=

版本列表:

  1. 1.0.0 May 15, 2019 (4.5 KB)

Runtime 依赖 (1):

activerecord >= 4.0.0

Development 依赖 (4):

rake ~> 12
rspec ~> 3.8
sqlite3 ~> 1.3.13

业主:

作者:

  • Branislav Petrovic

SHA 256 校验和:

=

下载总量 14,298

这个版本 14,298

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 0

链接: