On Jul 19, 9:11 pm, David Kahn <[email protected]> wrote:
> > However, when I do Person.find(27) I get: > > #<Person id: 27, ssn: "l+IV+c55qywTjPd+bW+IGA==\n" > > > And then if I do p = Person.find(27), then I get the decrypted ssn. > > I know that find must be processing under the override methods, but I dont > understand why, as I thought if you overrode a method it would hold in all > situations for the AR object. inspect ( which is how objects are displayed by the console ) uses read_attribute when building up its representation of the object Fred > > David -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

