Commit 1679da16cd1514ed5fd5436e3bf76e85c599c801

Authored by MoisesMachado
1 parent c9356f10

ActionItem111: bug fixed

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@743 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/controllers/profile_admin/profile_editor_controller.rb
1 class ProfileEditorController < ProfileAdminController 1 class ProfileEditorController < ProfileAdminController
2 helper :profile 2 helper :profile
  3 +
  4 + needs_profile
3 5
4 design_editor :holder => 'profile', :autosave => true, :block_types => :block_types 6 design_editor :holder => 'profile', :autosave => true, :block_types => :block_types
5 7
6 protect [:edit], 'edit_profile', :profile 8 protect [:edit], 'edit_profile', :profile
7 9
8 - needs_profile  
9 -  
10 def block_types 10 def block_types
11 { 11 {
12 'ListBlock' => _("List Block"), 12 'ListBlock' => _("List Block"),