Allows to be used in Rails 4.