Sha256: 7c4ac72799bc19a5b1c6d6d6d282f359e68f00586af4d14e6116029643ce9086

Contents?: true

Size: 174 Bytes

Versions: 5

Compression:

Stored size: 174 Bytes

Contents

module SpeedupRails
  module ApplicationHelper

    def render_ms(value)
      return nil unless value
      ((value * 100).round.to_f / 100).to_s + ' ms'
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
speedup-rails-0.0.15 app/helpers/speedup_rails/application_helper.rb
speedup-rails-0.0.13 app/helpers/speedup_rails/application_helper.rb
speedup-rails-0.0.12 app/helpers/speedup_rails/application_helper.rb
speedup-rails-0.0.10 app/helpers/speedup_rails/application_helper.rb
speedup-rails-0.0.9 app/helpers/speedup_rails/application_helper.rb