summaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r--app/models/custom_field.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 2f5f2749f..7dab23392 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -18,12 +18,12 @@
class CustomField < ActiveRecord::Base
has_many :custom_values, :dependent => true
- FIELD_FORMATS = { "list" => :label_list,
- "date" => :label_date,
- "bool" => :label_boolean,
- "int" => :label_integer,
- "string" => :label_string,
- "text" => :label_text
+ FIELD_FORMATS = { "string" => { :name => :label_string, :order => 1 },
+ "text" => { :name => :label_text, :order => 2 },
+ "int" => { :name => :label_integer, :order => 3 },
+ "list" => { :name => :label_list, :order => 4 },
+ "date" => { :name => :label_date, :order => 5 },
+ "bool" => { :name => :label_boolean, :order => 6 }
}.freeze
validates_presence_of :name, :field_format