diff options
Diffstat (limited to 'app/models/user_category.rb')
-rw-r--r-- | app/models/user_category.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/user_category.rb b/app/models/user_category.rb index 968b996..d641268 100644 --- a/app/models/user_category.rb +++ b/app/models/user_category.rb @@ -1,4 +1,10 @@ require 'permissions/set.rb' +# Associates users with question categories +# Hooks: +# * Before creation looks through groups in category and associates user with +# one randomly chosen question from each group (unless user is already +# associated with some question from the group) +# TODO: wrap the whole thing in transaction (?) class UserCategory < ActiveRecord::Base hobo_model # Don't put anything above this |