summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-04-16 15:34:05 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-04-16 15:34:05 +0000
commit538642c5c4323e0ad1f3dc568ff025325ca5ae47 (patch)
treedd079407683b75d0186fc8672fdd4bce221b31b3 /lib
parent4cb943571abcc1cbcc0fa92d0e8f0f690282ca56 (diff)
downloadredmine-538642c5c4323e0ad1f3dc568ff025325ca5ae47.tar.gz
redmine-538642c5c4323e0ad1f3dc568ff025325ca5ae47.zip
Let custom field formats control how they are edited.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3675 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/custom_field_format.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/redmine/custom_field_format.rb b/lib/redmine/custom_field_format.rb
index 336905666..2f12397d5 100644
--- a/lib/redmine/custom_field_format.rb
+++ b/lib/redmine/custom_field_format.rb
@@ -48,6 +48,13 @@ module Redmine
}
end
+ # Allow displaying the edit type of another field_format
+ #
+ # Example: display a custom field as a list
+ def edit_as
+ name
+ end
+
class << self
def map(&block)
yield self