9 lines
207 B
Ruby
9 lines
207 B
Ruby
class Comment < ApplicationRecord
|
|
include Searchable
|
|
|
|
belongs_to :bubble
|
|
belongs_to :creator, class_name: "User", default: -> { Current.user }
|
|
|
|
searchable_by :body, using: :comments_search_index
|
|
end
|