lib/dm_panlex/models/ap.rb in dm_panlex-0.2.0 vs lib/dm_panlex/models/ap.rb in dm_panlex-0.2.1

- old
+ new

@@ -18,11 +18,9 @@ property :ul, Text property :ip, Text property :co, Text property :ad, Text - belongs_to :apli, :parent_key => :li, :child_key => :li - - has n, :avs, :parent_key => :ap, :child_key => :ap, :constraint => :destroy - has n, :mns, :parent_key => :ap, :child_key => :ap + has n, :avs, :model => 'Av', :child_key => :ap, :constraint => :destroy + has n, :mns, :model => 'Mn', :child_key => :ap end end