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

- old
+ new

@@ -11,10 +11,10 @@ validates :estimate, numericality: true validates :negative, :positive, numericality: { greater_than_or_equal_to: 0, only_integer: true } validates :resource_id, uniqueness: { case_sensitive: false, - scope: %i[resource_type scopeable_id scopeable_type] + scope: %i[resource_type scopeable_id scopeable_type] } class << self def values_data(resource, scopeable) sql = %(