Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Jun 23, 2017
1 parent 43258c0 commit b64abf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/vote_on_issue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class VoteOnIssue < ActiveRecord::Base
belongs_to :user
belongs_to :issue

scope :left_join_user, -> { joins("LEFT JOIN users ON users.id = vote_on_issues.user_id").select(:login) }
scope :left_join_user, -> { joins("LEFT JOIN users ON users.id = vote_on_issues.user_id").select("users.login") }
scope :up_voters, -> { select(:vote_val).where("vote_val > ?", 0) }
scope :down_voters, -> { select(:vote_val).where("vote_val < ?", 0) }
scope :order_by_login, -> { order("users.login ASC") }
Expand Down

0 comments on commit b64abf7

Please sign in to comment.