Rails 3.2 porting

New pull request of #293.