parent/child CRUD complete

This commit is contained in:
2015-10-03 19:16:46 -05:00
parent 0510f1c4c2
commit 7afe8d137c
17 changed files with 144 additions and 26 deletions

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
}