diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-05 21:00:52 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-05 21:00:52 +0100 |
commit | e76890d5f4634d47514a592d501d9792ae2ff7bb (patch) | |
tree | 0d257877fa5e5ba295affefd8fe76d3d3954996e /app/models/gs_parameter.rb | |
parent | 4b8dfcded36e1162346ee029d4bfc9c94323bdde (diff) |
Different scaffold for GsParameter.
Diffstat (limited to 'app/models/gs_parameter.rb')
-rw-r--r-- | app/models/gs_parameter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/gs_parameter.rb b/app/models/gs_parameter.rb index aac10b0..8e30583 100644 --- a/app/models/gs_parameter.rb +++ b/app/models/gs_parameter.rb @@ -1,4 +1,6 @@ class GsParameter < ActiveRecord::Base + attr_accessible :name, :section, :value, :class_type, :description + validates :name, :presence => true, :uniqueness => true |