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

British Gas? or Central Recoveries?

In light of the recent stories about first[Wonga](http://www.buzzfeed.com/jimwaterson/wonga-created-fake-law-firms-to-frighten-customers-...… Continue reading

Economics, Amazon Style

Published on February 06, 2014