upgrade rails version

http://weblog.rubyonrails.org/2014/8/18/Rails_4_0_9_and_4_1_5_have_been_released/
Merge pull request #69 from atmos/fix-cve-2014-3514

Upgrade rails version