Commit bd6ecd615ec2c64d523d70866eafddeae013bd32

Authored by Rodrigo Souto
1 parent 0f14fca1

adjust profile_controller extension

src/noosfero-spb/software_communities/lib/ext/profile_controller.rb
@@ -55,10 +55,9 @@ class ProfileController @@ -55,10 +55,9 @@ class ProfileController
55 55
56 def hit_view_page 56 def hit_view_page
57 if profile 57 if profile
58 - community = profile  
59 - community.hit unless user_is_a_bot? ||  
60 - already_visited?(community) ||  
61 - community.class != Community 58 + profile.hit unless user_is_a_bot? ||
  59 + already_visited?(profile) ||
  60 + !profile.kind_of?(Software)
62 end 61 end
63 end 62 end
64 end 63 end