lib/pupa/models/organization.rb in pupa-0.0.8 vs lib/pupa/models/organization.rb in pupa-0.0.9
- old
+ new
@@ -1,18 +1,22 @@
module Pupa
# A group with a common purpose or reason for existence that goes beyond the set
# of people belonging to it.
- class Organization < Base
+ class Organization
+ include Model
+
self.schema = 'popolo/organization'
include Concerns::Timestamps
include Concerns::Sourceable
include Concerns::Nameable
include Concerns::Identifiable
include Concerns::Contactable
include Concerns::Linkable
attr_accessor :name, :classification, :parent_id, :parent, :founding_date,
+ :dissolution_date, :image
+ dump :name, :classification, :parent_id, :parent, :founding_date,
:dissolution_date, :image
foreign_key :parent_id
foreign_object :parent