adds consistency to spacing
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user