From 9ebc5ccf34fd73f87ad9c4c4815614990b9d4eb1 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Sat, 17 Jun 2017 10:05:20 +0200 Subject: [PATCH] removes user locale validation --- app/models/user.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 1b4ed81f1..219671349 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -42,9 +42,6 @@ class User < ActiveRecord::Base validates :official_level, inclusion: {in: 0..5} validates :terms_of_service, acceptance: { allow_nil: false }, on: :create - validates :locale, inclusion: {in: I18n.available_locales.map(&:to_s), - allow_nil: true} - validates_associated :organization, message: false accepts_nested_attributes_for :organization, update_only: true