Portfolio object shows likes for both Customers and Barbers

module ApplicationHelper
  def get_likes(object)
    object.likers(Customer).count + object.likers(Barber).count
  end
end


<% if current_user %>
  <%= get_likes(@portfolio) %>&nbsp;<span class="glyphicon glyphicon-heart"></span>
<% end %>