summaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-09 15:38:24 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-09 15:38:24 +0000
commit1fbb2fa33aa1d4b257a759a35cb38353cdac4e9e (patch)
tree5f006ef4bb6b1b0ad99aab53239bfa099177d195 /app/models/custom_field.rb
parent12968c0843970676c4c1eb60d0d82f4dbaca5caa (diff)
downloadredmine-1fbb2fa33aa1d4b257a759a35cb38353cdac4e9e.tar.gz
redmine-1fbb2fa33aa1d4b257a759a35cb38353cdac4e9e.zip
Move custom field classes to a method (#30994).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17937 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r--app/models/custom_field.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 1c71dfad9..25e9009d8 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -301,6 +301,10 @@ class CustomField < ActiveRecord::Base
super(attr_name, *args)
end
+ def css_classes
+ "cf_#{id}"
+ end
+
protected
# Removes multiple values for the custom field after setting the multiple attribute to false