Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-04-27 15:44:23 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-05-04 14:54:43 +0300
commit65bea3f7d0bf30b5f9a9b3f94567474d3c8f7cbc (patch)
treeff3b07de61b3a194de60ca55fbc675e1f1131e37 /app/models/user.rb
parent3629dc338fbe6c351ce89a94caa4c238965ee33a (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