parent/child CRUD complete

This commit is contained in:
mmoser committed 2015-10-03 19:16:46 -05:00
1 parent 0510f1c4c2
commit 7afe8d137c
17 files changed
+144 -26

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ class Person < ActiveRecord::Base
scope :just_parents, lambda {
joins(:children)
.order(:first_name)
.order(:first_name, :last_name)
.uniq
}