Fixed issue with devise and Rails 4.0.