sms-pager/app/models/page.rb

11 lines
183 B
Ruby
Raw Normal View History

2015-09-20 13:26:45 -05:00
class Page < ActiveRecord::Base
belongs_to :user, class_name: Person
belongs_to :person
scope :last_ten, -> { order(updated_at: :desc).limit(10) }
2015-10-03 15:15:19 -05:00
def to_i
id
end
2015-09-20 13:26:45 -05:00
end