From fa264ba79d82f29a7caf7c4936be3001761a218d Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Thu, 19 Jul 2007 19:22:20 +0000 Subject: [PATCH] ActionItem9: implementing terms of use storage --- app/models/virtual_community.rb | 11 +++++++++++ 1 file changed, 11 insertions(+), 0 deletions(-) diff --git a/app/models/virtual_community.rb b/app/models/virtual_community.rb index 327f802..c553695 100644 --- a/app/models/virtual_community.rb +++ b/app/models/virtual_community.rb @@ -51,6 +51,17 @@ class VirtualCommunity < ActiveRecord::Base end end end + + # the virtual community's terms of use: every user must accept them before + # registering. + def terms_of_use + self.settings['terms_of_use'] + end + + # sets the virtual community's terms of use. + def terms_of_use=(value) + self.settings['terms_of_use'] = value + end # ################################################# # Validations -- libgit2 0.21.2