Rails Warning Fail

Recent versions of rails 3 have started spitting out a new deprecation warning:

String-based interpolation of association conditions is deprecated. Please use a proc instead. So, for example, has_many :older_friends, :conditions => ‘age

#{age}’ should be changed to has_many :older_friends, :conditions => proc { “age > #{age}” }.

Now call me confused if you like, but isn’t the suggested replacement still doing just as much string interpolation as the original?

Tom Hughes

Tom Hughes
Software Engineer, Developer and system administrator for OpenStreetMap

Obfuscated Passwords...

A cron job that I run every day to screen scrape some figures froma financial services provider recently broke and upon investigationit t...… Continue reading

British Gas? or Central Recoveries?

Published on June 27, 2014

Economics, Amazon Style

Published on February 06, 2014