Files
nairobi/app/models/topic.rb
2017-09-05 12:51:08 +02:00

5 lines
148 B
Ruby

class Topic < ActiveRecord::Base
belongs_to :community
belongs_to :author, -> { with_hidden }, class_name: 'User', foreign_key: 'author_id'
end