diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-27 15:44:23 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-05-04 14:54:43 +0300 |
commit | 65bea3f7d0bf30b5f9a9b3f94567474d3c8f7cbc (patch) | |
tree | ff3b07de61b3a194de60ca55fbc675e1f1131e37 /app/models/user.rb | |
parent | 3629dc338fbe6c351ce89a94caa4c238965ee33a (diff) |
Add `accepted_terms` to users
This will act as a cache, otherwise we would need to load the
`term_agreements` for a user on each request.
Using this field the result we're interested in is loaded when the
current user is loaded, without causing an extra query.
Diffstat (limited to 'app/models/user.rb')
0 files changed, 0 insertions, 0 deletions