hide index fields from api; closes #1739
This commit is contained in:
@@ -61,6 +61,10 @@ class Note < 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