[Rails-core] [ANN] Rails 3.2.9 has been released!!!

2012-11-12 Thread Santiago Pastorino
Hi everyone, Rails 3.2.9 has been released without new changes since 3.2.9.rc3. ## IMPORTANT! A DoS attack was recently found in Ruby that uses specially-crafted input to dramatically reduce the performance of hashes, thus using up lots of CPU time. Rails applications may be vulnerable to an att

[Rails-core] Loading/unloading classes/files in tests

2012-11-12 Thread Uriel Katz
Hi, I am trying to fix #8167 and as part of that fix I need to write tests to check if my code auto loads classes when reading entries from cache. Now I need to write to the cache before I can load so when writing to the cache I do something like Som

[Rails-core] Suggestion: `before_save on: :create` should either work or raise an exception

2012-11-12 Thread Nathan Long
There's a small inconsistency in ActiveRecord's callback syntax that has tripped me up before. It wouldn't be a big deal, but it can lead to a silent failure. I'd like to suggest that it either be made consistent or be made to fail loudly. The issue is that to do something before validating, bu

Re: [Rails-core] Suggestion: `before_save on: :create` should either work or raise an exception

2012-11-12 Thread Rafael Mendonça França
What is the difference between before_create :foo and before_save :foo, on: :create? I think this is more a documentation issue and maybe (2.) can help to avoid confusion. I don't like (1.) and (3.). Rafael Mendonça França http://twitter.com/rafaelfranca https://github.com/rafaelfranca On Tue