diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-09 15:38:24 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-09 15:38:24 +0000 |
commit | 1fbb2fa33aa1d4b257a759a35cb38353cdac4e9e (patch) | |
tree | 5f006ef4bb6b1b0ad99aab53239bfa099177d195 /app/models/custom_field.rb | |
parent | 12968c0843970676c4c1eb60d0d82f4dbaca5caa (diff) | |
download | redmine-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.rb | 4 |
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 |