Project

General

Profile

Patch #18276 » RM_18276_dynamic_queries_captions_RM_V2.3.2.diff

Jérôme BATAILLE, 2014-11-04 19:10

View differences:

app/models/query.rb (copie de travail)
33 33
  end
34 34

  
35 35
  def caption
36
    @caption_key.is_a?(Symbol) ? l(@caption_key) : @caption_key
36
    @caption_key.is_a?(Symbol) ? l(@caption_key) : (@caption_key.is_a?(Proc) ? @caption_key.call : @caption_key)
37 37
  end
38 38

  
39 39
  # Returns true if the column is sortable, otherwise false
    (1-1/1)