Sha256: 728239ecfa6b177059128dae62d5867900ca90311ce70923eec8a5281747efd9
Contents?: true
Size: 270 Bytes
Versions: 18
Compression:
Stored size: 270 Bytes
Contents
module Compony module ModelFields class Percentage < Base def value_for(data, controller: nil, **_) return transform_and_join(data.send(@name), controller:) { |el| controller.helpers.sanitize "#{(el * 100.0).round(2)}%" } end end end end
Version data entries
18 entries across 18 versions & 1 rubygems