Sha256: a57f6c45a6442db4272f4bc66352e7a826e66aa8dfe27ed701a6b1c4ca7b9c84

Contents?: true

Size: 223 Bytes

Versions: 8

Compression:

Stored size: 223 Bytes

Contents

# frozen_string_literal: true

module Effective
  module TableRows
    class PercentField < Effective::TableRow

      def content
        template.number_to_percentage(value) if value.present?
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_bootstrap-1.19.5 app/models/effective/table_rows/percent_field.rb
effective_bootstrap-1.19.4 app/models/effective/table_rows/percent_field.rb
effective_bootstrap-1.19.3 app/models/effective/table_rows/percent_field.rb
effective_bootstrap-1.19.2 app/models/effective/table_rows/percent_field.rb
effective_bootstrap-1.19.1 app/models/effective/table_rows/percent_field.rb
effective_bootstrap-1.19.0 app/models/effective/table_rows/percent_field.rb
effective_bootstrap-1.18.7 app/models/effective/table_rows/percent_field.rb
effective_bootstrap-1.18.4 app/models/effective/table_rows/percent_field.rb