Skip to content

Upgrading rails version

David Corking edited this page Jul 25, 2013 · 12 revisions

From Rails 3.1 to 3.2

Deprecation warnings while testing locally

rspec stub! is deprecated

rspec mock is deprecated - use double

Deprecation warnings while deploying to Heroku

https://gist.github.com/mtc2013/6079095

From 3.2 to 4.0

vendor/plugins

LocalSupport doesn't use vendor plugins but heroku does

Heroku will hopefully deal automatically with the deprecation warnings

(http://stackoverflow.com/a/9042604)

(https://devcenter.heroku.com/articles/rails4#upgrading-a-rails3-app)

Mass assignment protection

protected_attributes gem or strong parameters protection model? (gem not supported after 4.0)

(http://weblog.rubyonrails.org/2012/3/21/strong-parameters/) (http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html)