Fix a issue that prevent notifications in Rails 4