search for: c55qywtjpd

Displaying 1 result from an estimated 1 matches for "c55qywtjpd".

2010 Jul 19
3
ActiveRecord override
...rower_ssn)) if read_attribute(:borrower_ssn) && self.encryption_key rescue return read_attribute(:borrower_ssn) if read_attribute(:borrower_ssn) && self.encryption_key end nil end end 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. David -- You received th...