From 2b2a906cabdcdc326ab8da98d980f47db0f243a8 Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Tue, 27 Jan 2015 12:43:00 +0000 Subject: [PATCH] When the block was from an environment it breaks the show to followers option --- app/models/block.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/block.rb b/app/models/block.rb index 56d94c8..524d197 100644 --- a/app/models/block.rb +++ b/app/models/block.rb @@ -224,7 +224,7 @@ class Block < ActiveRecord::Base 'all' => _('All users'), 'logged' => _('Logged'), 'not_logged' => _('Not logged'), - 'followers' => owner.organization? ? _('Members') : _('Friends') + 'followers' => owner.class != Environment && owner.organization? ? _('Members') : _('Friends') } end -- libgit2 0.21.2