Upgrade rails version to 4.0.1.rc1
Use memoization syntax. Thanks @NARKOZ !