mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-02-21 12:10:34 +09:00
7 lines
188 B
Ruby
7 lines
188 B
Ruby
class Boost < ApplicationRecord
|
|
belongs_to :message, touch: true
|
|
belongs_to :booster, class_name: "User", default: -> { Current.user }
|
|
|
|
scope :ordered, -> { order(:created_at) }
|
|
end
|