From 4c1cc6aeb83d69ad9c120e22272bae1d804cf6f1 Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Sat, 20 Oct 2007 06:20:41 +0000 Subject: [PATCH] ActionItem85: fixed the list block url --- app/controllers/profile_admin/enterprise_editor_controller.rb | 4 ++-- app/models/enterprises_block.rb | 2 +- app/models/list_block.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/profile_admin/enterprise_editor_controller.rb b/app/controllers/profile_admin/enterprise_editor_controller.rb index 1a63ecc..2188408 100644 --- a/app/controllers/profile_admin/enterprise_editor_controller.rb +++ b/app/controllers/profile_admin/enterprise_editor_controller.rb @@ -2,8 +2,8 @@ class EnterpriseEditorController < ProfileAdminController before_filter :login_required, :check_enterprise - protect [:edit, :update], :edit_profile, :profile - protect [:destroy], :destroy_profile, :profile + protect [:edit, :update], 'edit_profile', :profile + protect [:destroy], 'destroy_profile', :profile needs_profile diff --git a/app/models/enterprises_block.rb b/app/models/enterprises_block.rb index 2f8f9d0..386f8a7 100644 --- a/app/models/enterprises_block.rb +++ b/app/models/enterprises_block.rb @@ -7,7 +7,7 @@ class EnterprisesBlock < Design::Block Enterprise.find(:all).map do |p| content_tag(:li, content_tag(:span, - link_to( p.name, :profile => p.identifier) + link_to_homepage( p.name, p.identifier) ) ) end.join("\n"), diff --git a/app/models/list_block.rb b/app/models/list_block.rb index 625740a..bbbfe4e 100644 --- a/app/models/list_block.rb +++ b/app/models/list_block.rb @@ -10,7 +10,7 @@ class ListBlock < Design::Block 'li', content_tag( 'span', - link_to( p.name, :profile => p.identifier) + link_to_homepage( p.name, p.identifier) )) end.join("\n"), :class => 'people_list_block' -- libgit2 0.21.2