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:
=

instalar:
=

Versiones:

  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)

dependencias de Runtime (1):

rails >= 4

dependencias de Development (1):

sqlite3 >= 0

Propietarios:

Autores:

  • Eddie Lebow

SHA 256 checksum:

=

Total de descargas 6.557

Para esta versión 2.339

Versión publicada:

Licencia:

public domain

Versión de Ruby requerida: >= 0

Enlace: