diff --git a/app/models/enterprises_block.rb b/app/models/enterprises_block.rb index 31ccb41..253acae 100644 --- a/app/models/enterprises_block.rb +++ b/app/models/enterprises_block.rb @@ -16,11 +16,11 @@ class EnterprisesBlock < ProfileListBlock owner = self.owner case owner when Profile - lambda do + proc do link_to s_('enterprises|View all'), :profile => owner.identifier, :controller => 'profile', :action => 'enterprises' end when Environment - lambda do + proc do link_to s_('enterprises|View all'), :controller => 'search', :action => 'assets', :asset => 'enterprises' end else diff --git a/app/models/profile_list_block.rb b/app/models/profile_list_block.rb index 69f0dfb..f4562fb 100644 --- a/app/models/profile_list_block.rb +++ b/app/models/profile_list_block.rb @@ -28,7 +28,7 @@ class ProfileListBlock < Block end def profile_count - profiles.visible.count + profiles.visible.length end # the title of the block. Probably will be overriden in subclasses. -- libgit2 0.21.2