Sha256: db6f28613896b01a36c80289529225cbcfed461cec6a181a9c204e7eb5ba1b01
Contents?: true
Size: 306 Bytes
Versions: 6
Compression:
Stored size: 306 Bytes
Contents
# frozen_string_literal: true # rubocop:disable Style/ClassAndModuleChildren class Maglev::SettingTypes::CollectionItem < Maglev::SettingTypes::Base def cast_value(value) if value.is_a?(String) { id: value } else value end end end # rubocop:enable Style/ClassAndModuleChildren
Version data entries
6 entries across 6 versions & 1 rubygems