lib/pupa/models/post.rb in pupa-0.0.8 vs lib/pupa/models/post.rb in pupa-0.0.9

- old
+ new

@@ -1,15 +1,18 @@ module Pupa # A position that exists independent of the person holding it. - class Post < Base + class Post + include Model + self.schema = 'popolo/post' include Concerns::Timestamps include Concerns::Sourceable include Concerns::Contactable include Concerns::Linkable attr_accessor :label, :role, :organization_id, :start_date, :end_date + dump :label, :role, :organization_id, :start_date, :end_date foreign_key :organization_id # Returns the post's label and organization ID. #