I am using the to_json method to encode models to json. Standard
stuff. I am using the :include option so that a relation model gets
added to the encoded json. Again this is fine however the related
model is a user model that has things like md5 password strings. Whats
the best way of excluding these fields form the encoding. Here is the
current line of code that calls the to_json method
I am using the to_json method to encode models to json. Standard
stuff. I am using the :include option so that a relation model gets
added to the encoded json. Again this is fine however the related
model is a user model that has things like md5 password strings. Whats
the best way of excluding these fields form the encoding. Here is the
current line of code that calls the to_json method