diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-24 12:47:00 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-24 12:47:00 +0100 |
commit | b432f1930851c3b583b223d773341f5e208046a7 (patch) | |
tree | 5a547d1bc34556c24e2e09013e21e3085ec9e120 /app/models/gemeinschaft_setup.rb | |
parent | f4d1151238fbf01b436884ae89367a53b4360014 (diff) |
Better user experience. One step setup.
Diffstat (limited to 'app/models/gemeinschaft_setup.rb')
-rw-r--r-- | app/models/gemeinschaft_setup.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/gemeinschaft_setup.rb b/app/models/gemeinschaft_setup.rb index 6056236..4b4dd37 100644 --- a/app/models/gemeinschaft_setup.rb +++ b/app/models/gemeinschaft_setup.rb @@ -6,6 +6,14 @@ class GemeinschaftSetup < ActiveRecord::Base belongs_to :country belongs_to :language + validates :default_company_name, + :presence => true, + :uniqueness => true + + validates :default_system_email, + :presence => true, + :uniqueness => true + # Remove the cache which was created by the heater rake task. # after_create :expire_cache |