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.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 1b8033a0e..ad87aa34e 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -144,6 +144,11 @@ class CustomField < ActiveRecord::Base
format.value_from_keyword(self, keyword, customized)
end
+ # Returns the options hash used to build a query filter for the field
+ def query_filter_options(query)
+ format.query_filter_options(self, query)
+ 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.