Sha256: d08717ddeca3aa112ef2224a635f3f069752ef24cdd4f88b46478e3f65c95cf7
Contents?: true
Size: 319 Bytes
Versions: 2
Compression:
Stored size: 319 Bytes
Contents
module RailsSettings module Fields class Array < ::RailsSettings::Fields::Base def deserialize(value) return value unless value.is_a?(::String) value.split(separator).reject(&:empty?).map(&:strip) end def serialize(value) deserialize(value) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-settings-cached-2.9.1 | lib/rails-settings/fields/array.rb |
rails-settings-cached-2.9.0 | lib/rails-settings/fields/array.rb |