lib/pupa/models/person.rb in pupa-0.2.3 vs lib/pupa/models/person.rb in pupa-0.2.4
- old
+ new
@@ -1,10 +1,10 @@
module Pupa
# A real person, alive or dead.
class Person
include Model
- self.schema = 'popolo/person'
+ self.schema = File.expand_path(File.join('..', '..', '..', 'schemas', 'popolo', 'person.json'), __dir__)
include Concerns::Timestamps
include Concerns::Sourceable
include Concerns::Nameable
include Concerns::Identifiable