app/models/popolo/identifier.rb in popolo-0.0.2 vs app/models/popolo/identifier.rb in popolo-0.0.3
- old
+ new
@@ -1,10 +1,10 @@
module Popolo
# An issued identifier.
class Identifier
include Mongoid::Document
- embedded_in :organization, class_name: 'Popolo::Organization'
+ embedded_in :identifiable, polymorphic: true
# An issued identifier, e.g. a DUNS number.
field :identifier, type: String
# An identifier scheme, e.g. DUNS.
field :scheme, type: String