RubyGems Navigation menu

activerecord-one 1.0.1

Provides `ActiveRecord::Relation#one!`, a convenience method that asserts a relation contains exactly one record and returns it. If there are no records or more than one, an `ActiveRecord::NoRecordFound` or `ActiveRecord::MultipleRecordsFound` exception is raised, respectively.

Gemfile:
=

安装:
=

版本列表:

  1. 1.0.2 July 31, 2020 (4.5 KB)
  2. 1.0.1 January 30, 2018 (4.5 KB)
  3. 1.0.0 January 30, 2018 (4.5 KB)

Runtime 依赖 (1):

rails >= 4

Development 依赖 (1):

sqlite3 >= 0

业主:

作者:

  • Eddie Lebow

SHA 256 校验和:

=

下载总量 6,560

这个版本 2,340

版本发布:

许可:

public domain

需要的 Ruby 版本: >= 0

链接: