diff --git a/app/models/virtual_community.rb b/app/models/virtual_community.rb index a01dc74..fff9c93 100644 --- a/app/models/virtual_community.rb +++ b/app/models/virtual_community.rb @@ -65,6 +65,8 @@ class VirtualCommunity < ActiveRecord::Base self.settings['terms_of_use'] = value end + # returns true if this VirtualCommunity has terms of use to be + # accepted by users before registration. def has_terms_of_use? ! self.settings['terms_of_use'].nil? end -- libgit2 0.21.2