19 Dec '13, 6pm

Just found out update_attribute in Rails actually persists all changed fields, bypassing validation:

Updates a single attribute and saves the record without going through the normal validation procedure. This is especially useful for boolean flags on existing records. The regular update_attribute method in Base is replaced with this when the validations module is mixed in, which it is by default.

Full article: http://apidock.com/rails/ActiveRecord/Base/update_attribu...

Tweets

Why does `source .bashrc` complain "command not...

ruby-forum.com 19 Dec '13, 11am

Is it just me or is this something that just cant be done? Ive found out that whenever system calls are made they open a c...