Sha256: d2e35f384c351fbcff46c17308338333f32a2d5b149a0b93b72e8431751d7632
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true module Plutonium module UI module Form module Options module InferredTypes private def infer_field_component return :markdown if inferred_field_type == :rich_text component = super case component when :select :slim_select when :date, :time, :datetime :flatpickr else component end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plutonium-0.15.24 | lib/plutonium/ui/form/options/inferred_types.rb |
plutonium-0.15.23 | lib/plutonium/ui/form/options/inferred_types.rb |