From 8beecb6060c2a7af86fd3ee4457f350e5b032c0a Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 6 Apr 2015 10:03:00 -0300 Subject: [PATCH] Revert "add option to hide community" --- app/controllers/my_profile/profile_editor_controller.rb | 1 - app/models/community.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/my_profile/profile_editor_controller.rb b/app/controllers/my_profile/profile_editor_controller.rb index 0a23482..6e1ee3b 100644 --- a/app/controllers/my_profile/profile_editor_controller.rb +++ b/app/controllers/my_profile/profile_editor_controller.rb @@ -25,7 +25,6 @@ class ProfileEditorController < MyProfileController Profile.transaction do Image.transaction do begin - params[:profile_data][:visible] = params[:profile_data][:visible] == '0' if profile.community? && params[:profile_data].present? @plugins.dispatch(:profile_editor_transaction_extras) @profile_data.update_attributes!(params[:profile_data]) redirect_to :action => 'index', :profile => profile.identifier diff --git a/app/models/community.rb b/app/models/community.rb index 7cd2bad..9fdd291 100644 --- a/app/models/community.rb +++ b/app/models/community.rb @@ -1,6 +1,6 @@ class Community < Organization - attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type, :address_reference, :district, :tag_list, :language, :visible + attr_accessible :accessor_id, :accessor_type, :role_id, :resource_id, :resource_type, :address_reference, :district, :tag_list, :language after_destroy :check_invite_member_for_destroy def self.type_name -- libgit2 0.21.2