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.

Required Ruby Version

>= 0

Authors

Branislav Petrovic

Versions

  1. 1.0.0 May 15, 2019 (4.5 KB)

SHA 256 checksum