Sha256: d62814ce1ef4ea546383687cc39ed78e85de54de220e477f6f0a5c63d7036c26
Contents?: true
Size: 725 Bytes
Versions: 6
Compression:
Stored size: 725 Bytes
Contents
# frozen_string_literal: true module Phlexi module Display module Options module InferredTypes private def infer_field_component case inferred_field_type when :string, :text infer_string_field_type || inferred_field_type when :float, :decimal :number when :json, :jsonb :json # when :attachment, :binary # :attachment # end when :citext infer_string_field_type || :string when :integer, :association, :hstore, :date, :time, :datetime inferred_field_type else :string end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems