Rails 4 warning fix with device token regex