adds consistency to spacing

This commit is contained in:
rgarcia
2016-11-16 19:42:35 +01:00
parent 348a6dc970
commit 1dbdabb69a

View File

@@ -3,7 +3,7 @@ class Poll::PartialResult < ActiveRecord::Base
VALID_ORIGINS = %w{ web }
belongs_to :question, -> { with_hidden }
belongs_to :author, -> { with_hidden }, class_name: 'User', foreign_key: 'author_id'
belongs_to :author, -> { with_hidden }, class_name: 'User', foreign_key: 'author_id'
validates :question, presence: true
validates :author, presence: true
@@ -13,6 +13,4 @@ class Poll::PartialResult < ActiveRecord::Base
scope :by_author, -> (author_id) { where(author_id: author_id) }
scope :by_question, -> (question_id) { where(question_id: question_id) }
end
end