Deprecated erased for Rails 4