Project

General

Profile

Revision c80f3b10

Added by Tom Caspy almost 7 years ago

fixes #7230 - rails 4 compatibility

View differences:

app/helpers/containers_helper.rb
77 77
    text_field_tag(name, val, options)
78 78
  end
79 79

  
80
  # Compatibility fixes - to be removed once 1.7 compatibility is no longer required
81
  if SETTINGS[:version].to_s.to_f <= 1.7
82
    def trunc_with_tooltip(text, length = 32)
83
      trunc(text, length)
84
    end
85
  end
86

  
87 80
  def processes(container)
88 81
    ForemanDocker::Docker.get_container(container).top
89 82
  end

Also available in: Unified diff