dudu06/lineup4 — pull request #1 by JaredCowan (2014-12-04 04:04:05+00:00)
Title: 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) %>
<% end %>