hide index fields from api; closes #1739
This commit is contained in:
@@ -58,6 +58,10 @@ class WikiPage < ActiveRecord::Base
|
||||
end
|
||||
|
||||
module ApiMethods
|
||||
def hidden_attributes
|
||||
super + [:body_index]
|
||||
end
|
||||
|
||||
def serializable_hash(options = {})
|
||||
options ||= {}
|
||||
options[:except] ||= []
|
||||
|
||||
Reference in New Issue
Block a user