From f6c91ed79138c55b1c1cc8d0af9e141062b7dbbe Mon Sep 17 00:00:00 2001 From: Andrea Frigido Date: Mon, 11 Jul 2011 13:13:58 +0200 Subject: [PATCH] Locomotive.config.default_locale as default locale for new accounts. --- app/models/account.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/account.rb b/app/models/account.rb index 3206b180..2d135d5c 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -9,7 +9,7 @@ class Account ## attributes ## field :name - field :locale, :default => 'en' + field :locale, :default => Locomotive.config.default_locale.to_s or 'en' field :switch_site_token ## validations ##