Compatibility with Rails 4.0

:bullettrain_side::arrow_upper_right: 

/cc @zendesk/zendesk-rails-upgraders 

### Steps to merge
 - [ ] :+1: of the team