Class: Redmine::FieldFormat::VersionFormat
- Inherits:
-
RecordList
- Object
- Base
- List
- RecordList
- Redmine::FieldFormat::VersionFormat
- Defined in:
- lib/redmine/field_format.rb
Overview
Instance Method Summary collapse
- #before_custom_field_save(custom_field) ⇒ Object
- #possible_values_options(custom_field, object = nil) ⇒ Object
Methods inherited from RecordList
#cast_single_value, #group_statement, #join_for_order_statement, #order_statement, #possible_custom_value_options, #reset_target_class, #target_class
Methods inherited from List
#bulk_edit_tag, #edit_tag, #query_filter_options
Methods inherited from Base
#bulk_edit_tag, #cast_custom_value, #cast_single_value, #cast_value, #edit_tag, field_attributes, #formatted_custom_value, #formatted_value, #group_statement, #join_for_order_statement, #label, #name, #order_statement, #possible_custom_value_options, #query_filter_options, #target_class, #validate_custom_field, #validate_custom_value, #validate_single_value, #value_from_keyword
Methods included from Helpers::URL
Methods included from I18n
#current_language, #day_letter, #day_name, #find_language, #format_date, #format_time, #l, #l_hours, #l_hours_short, #l_or_humanize, #languages_options, #ll, #lu, #month_name, #set_language_if_valid, #valid_languages
Instance Method Details
#before_custom_field_save(custom_field) ⇒ Object
786 787 788 789 790 791 |
# File 'lib/redmine/field_format.rb', line 786 def before_custom_field_save(custom_field) super if custom_field.version_status.is_a?(Array) custom_field.version_status.map!(&:to_s).reject!(&:blank?) end end |
#possible_values_options(custom_field, object = nil) ⇒ Object
782 783 784 |
# File 'lib/redmine/field_format.rb', line 782 def (custom_field, object=nil) (custom_field, object) end |