fixes #5610 - upgrade to Rails 3.2.18

(cherry picked from commit 7ccee9dcdfc87b8dff78fccd94a556ac4c2cce66)