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.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 97bc70228..136a336ed 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -100,7 +100,9 @@ class CustomField < ApplicationRecord
'user_role',
'version_status',
'extensions_allowed',
- 'full_width_layout')
+ 'full_width_layout',
+ 'thousands_delimiter'
+ )
def copy_from(arg, options={})
return if arg.blank?
@@ -225,6 +227,10 @@ class CustomField < ApplicationRecord
text_formatting == 'full'
end
+ def thousands_delimiter?
+ thousands_delimiter == '1'
+ end
+
# Returns a ORDER BY clause that can used to sort customized
# objects by their value of the custom field.
# Returns nil if the custom field can not be used for sorting.