lib/pupa/models/vote.rb in pupa-0.2.3 vs lib/pupa/models/vote.rb in pupa-0.2.4

- old
+ new

@@ -1,10 +1,10 @@ module Pupa # A voter's vote in a vote event. class Vote include Model - self.schema = 'popolo/vote' + self.schema = File.expand_path(File.join('..', '..', '..', 'schemas', 'popolo', 'vote.json'), __dir__) include Concerns::Timestamps include Concerns::Sourceable attr_accessor :vote_event_id, :voter_id, :option, :group_id, :role, :weight, :pair_id