Skip to content

Commit 6568c37

Browse files
committed
fix protip layout
1 parent 199206a commit 6568c37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def unfollow_team!(team)
351351
end
352352

353353
def teams_being_followed
354-
Team.find(followed_teams.collect(&:team_id)).sort { |x, y| y.score <=> x.score }
354+
Team.where(id: followed_teams.pluck(:team_id)).order(:score)
355355
end
356356

357357
def on_team?

app/views/layouts/protip.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ html.no-js lang=(I18n.locale)
2727
#x-following-networks.hide data-networks=(current_user.following_networks.pluck(:slug))
2828
#x-following-teams.hide data-teams=current_user.teams_being_followed.pluck(:name)
2929

30-
= javascript_include_tag 'application'
30+
= javascript_include_tag 'coderwall '
3131
= render 'shared/mixpanel_properties'
3232
= javascript_include_tag 'highlight/highlight.js'
3333
= javascript_include_tag 'highlight/language.js'

0 commit comments

Comments
 (0)