Commit fa264ba79d82f29a7caf7c4936be3001761a218d
1 parent
2d1f3948
Exists in
staging
and in
42 other branches
ActionItem9: implementing terms of use storage
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@104 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
app/models/virtual_community.rb
| @@ -51,6 +51,17 @@ class VirtualCommunity < ActiveRecord::Base | @@ -51,6 +51,17 @@ class VirtualCommunity < ActiveRecord::Base | ||
| 51 | end | 51 | end |
| 52 | end | 52 | end |
| 53 | end | 53 | end |
| 54 | + | ||
| 55 | + # the virtual community's terms of use: every user must accept them before | ||
| 56 | + # registering. | ||
| 57 | + def terms_of_use | ||
| 58 | + self.settings['terms_of_use'] | ||
| 59 | + end | ||
| 60 | + | ||
| 61 | + # sets the virtual community's terms of use. | ||
| 62 | + def terms_of_use=(value) | ||
| 63 | + self.settings['terms_of_use'] = value | ||
| 64 | + end | ||
| 54 | 65 | ||
| 55 | # ################################################# | 66 | # ################################################# |
| 56 | # Validations | 67 | # Validations |