diff --git a/app/models/community.rb b/app/models/community.rb index 33365b0..22ec4ba 100644 --- a/app/models/community.rb +++ b/app/models/community.rb @@ -2,7 +2,7 @@ class Community < Organization attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type attr_accessible :address_reference, :district, :tag_list, :language, :description - attr_accessible :requires_email + after_destroy :check_invite_member_for_destroy def self.type_name @@ -13,9 +13,6 @@ class Community < Organization N_('Language') settings_items :language - settings_items :requires_email, :type => :boolean - - alias_method :requires_email?, :requires_email extend SetProfileRegionFromCityState::ClassMethods set_profile_region_from_city_state diff --git a/app/models/organization.rb b/app/models/organization.rb index f3a0853..8e66431 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -2,6 +2,10 @@ class Organization < Profile attr_accessible :moderated_articles, :foundation_year, :contact_person, :acronym, :legal_form, :economic_activity, :management_information, :cnpj, :display_name, :enable_contact_us + attr_accessible :requires_email + + settings_items :requires_email, type: :boolean + alias_method :requires_email?, :requires_email SEARCH_FILTERS = { :order => %w[more_recent more_popular more_active], -- libgit2 0.21.2