fixes #1754; include category in wiki page api
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user