add before method
fixed the bug
Merge pull request #74 from cassiuschen/feature/UpdateToRails4.1

Update to Rails 4.1