Commit 0c8dd1ff8437944f2fbacdc9fd76e9c15afeb11c
1 parent
241766d6
Exists in
master
and in
28 other branches
ActionItem9: minor doc work
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@108 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/models/virtual_community.rb
@@ -65,6 +65,8 @@ class VirtualCommunity < ActiveRecord::Base | @@ -65,6 +65,8 @@ class VirtualCommunity < ActiveRecord::Base | ||
65 | self.settings['terms_of_use'] = value | 65 | self.settings['terms_of_use'] = value |
66 | end | 66 | end |
67 | 67 | ||
68 | + # returns <tt>true</tt> if this VirtualCommunity has terms of use to be | ||
69 | + # accepted by users before registration. | ||
68 | def has_terms_of_use? | 70 | def has_terms_of_use? |
69 | ! self.settings['terms_of_use'].nil? | 71 | ! self.settings['terms_of_use'].nil? |
70 | end | 72 | end |