Kamil Trzciński
650f40865e
Forbid the use of #reload
and prefer #reset
...
The `#reload` makes to load all objects into memory,
and the main purpose of `#reload` is to drop the association cache.
The `#reset` seems to solve exactly that case.
2019-04-15 13:05:14 +02:00
Nick Thomas
f086dbf66e
Add a thin encapsulation around .pluck(:id)
2019-03-28 16:18:23 +00:00
Bob Van Landuyt
c982edfa19
Avoid race conditions when creating GpgSignature
...
This avoids race conditions when creating GpgSignature.
2019-02-06 15:24:46 +01:00
Bob Van Landuyt
ccd8a9b282
Adds helper for find_or_create_by
in transaction
...
This allows us to call `find_or_create_by` on all models and scopes.
2019-02-05 14:44:41 +01:00
Mark Chao
d253440ed1
Add query method for id query
2019-01-15 17:10:30 +08:00
Jan Provaznik
648f05622d
Add ApplicationRecord model class
...
In Rails 5 all models by default inherit from ApplicationRecord.
2018-11-14 12:41:16 +01:00