Sha256: 79145bfe2642759b62ab1652435f0a749efbcd866cfb45b9e89ce535e87555b0
Contents?: true
Size: 655 Bytes
Versions: 3
Compression:
Stored size: 655 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 :integer, :association, :hstore, :date, :time, :datetime inferred_field_type else :string end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems