This commit is contained in:
Sam 2013-04-24 14:39:31 +10:00
parent 81673dcde8
commit 4d9dc82be0
1 changed files with 1 additions and 1 deletions

2
app/models/category.rb Normal file → Executable file
View File

@ -1,7 +1,7 @@
class Category < ActiveRecord::Base
belongs_to :topic, dependent: :destroy
belongs_to :topic_only_relative_url,
select: "id, title",
select: "id, title, slug",
class_name: "Topic",
foreign_key: "topic_id"
belongs_to :user