fixes #1754; include category in wiki page api

This commit is contained in:
Toks
2013-06-23 11:42:55 -04:00
parent 40d9e0cfe1
commit 168de3215f
2 changed files with 17 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ class WikiPage < ActiveRecord::Base
options[:except] += hidden_attributes
unless options[:builder]
options[:methods] ||= []
options[:methods] += [:creator_name]
options[:methods] += [:creator_name, :category_name]
end
hash = super(options)
hash