Rename method to serializable_object

This commit is contained in:
Adrian Mugnolo and Santiago Pastorino
2013-12-17 16:11:17 -02:00
committed by Santiago Pastorino
parent f14f931957
commit 0f4547eb77
3 changed files with 5 additions and 5 deletions

View File

@@ -169,12 +169,12 @@ end
end
end
def serializable_hash(options={})
def serializable_object(options={})
return nil if object.nil?
hash = attributes
hash.merge! associations
@options[:_wrap_in_array] ? [hash] : hash
end
alias_method :serializable_object, :serializable_hash
alias_method :serializable_hash, :serializable_object
end
end