class EasyEntityFormatter
Public Class Methods
Source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 3 def initialize(view_context) @view_context = view_context end
Public Instance Methods
Source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 15 def format_column(column, entity) format_object column.value_object(entity) end
Source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 19 def format_object(value) view.format_object(value) end
Source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 11 def l(*args) view.l(*args) end
Source
# File lib/redmine_extensions/easy_entity_formatters/easy_entity_formatter.rb, line 7 def view @view_context end