Change conditional use of before_filter to suit Rails 3.2