Rails deprecations are a nice thing. They allow us to know what transition path to use, instead of being left in the dark. With deprecated functionality being removed from Rails, it’s important to know these things.

If you have a decent test coverage, you might want to add this to your config/environments/test.rb:


1 class DeprecatedFunctionality < SyntaxError; end
2 ActiveSupport::Deprecation.behavior = Proc.new {|message, callstack|
3 raise DeprecatedFunctionality, message
4 }

This will raise an exception instead of simply reporting the warning to the console. If you have CruiseControl.rb installed, the messages will show up as errors there too. This is a quick and easy way to force yourself to actually use the new functionality.


Your Host

A picture of me

I am François Beausoleil, a Ruby on Rails and Scala developer. During the day, I work on Seevibes, a platform to measure social interactions related to TV shows. At night, I am interested many things. Read my biography.

Top Tags

Books I read and recommend


Projects I work on

Projects I worked on