OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/models/attribute_help_text/work_package.rb

16 lines
354 B

class AttributeHelpText::WorkPackage < AttributeHelpText
def self.available_attributes
Hash[::Query.new.available_columns.map { |c| [c.name.to_s, c.caption] }]
end
validates_inclusion_of :attribute_name, in: available_attributes.keys
def attribute_scope
'WorkPackage'
end
def type_caption
I18n.t(:label_work_package)
end
end