lib/pupa/models/post.rb in pupa-0.2.3 vs lib/pupa/models/post.rb in pupa-0.2.4
- old
+ new
@@ -1,10 +1,10 @@
module Pupa
# A position that exists independent of the person holding it.
class Post
include Model
- self.schema = 'popolo/post'
+ self.schema = File.expand_path(File.join('..', '..', '..', 'schemas', 'popolo', 'post.json'), __dir__)
include Concerns::Timestamps
include Concerns::Sourceable
include Concerns::Contactable
include Concerns::Linkable