This commit is contained in:
2015-09-20 13:26:45 -05:00
parent f8c03d6f5c
commit 692446b97b
25 changed files with 283 additions and 13 deletions

6
app/models/page.rb Normal file
View File

@ -0,0 +1,6 @@
class Page < ActiveRecord::Base
belongs_to :user, class_name: Person
belongs_to :person
scope :last_ten, -> { order(updated_at: :desc).limit(10) }
end