app/models/customer_vault/person.rb in customer_vault-1.0.0 vs app/models/customer_vault/person.rb in customer_vault-1.0.1
- old
+ new
@@ -3,10 +3,10 @@
self.abstract_class = true
def self.list
individuals = Individual.all
corporations = Corporation.all
- return (individuals + corporations).sort_by(&:created_at)
+ return (individuals + corporations)
end
def links
a = Link.where(alice_id: self.id, alice_type: self.class).map {|l| {title: l.title, person: l.bob, origin: l}}
b = Link.where(bob_id: self.id, bob_type: self.class).map {|l| {title: l.title, person: l.alice, origin: l}}