lib/voting/models/voting/vote.rb in voting-0.4.0 vs lib/voting/models/voting/vote.rb in voting-0.5.0

- old
+ new

@@ -13,10 +13,10 @@ validates :author, :negative, :positive, :resource, presence: true validates :negative, :positive, inclusion: { in: [0, 1] } validates :author_id, uniqueness: { case_sensitive: false, - scope: %i[author_type resource_id resource_type scopeable_id scopeable_type] + scope: %i[author_type resource_id resource_type scopeable_id scopeable_type] } def status return 'positive' if positive == 1