Module: ArrayAssociation::Utils
- Defined in:
- lib/array_association/utils.rb
Class Method Summary collapse
Class Method Details
.normalize_integer_array(value) ⇒ Object
5 6 7 8 |
# File 'lib/array_association/utils.rb', line 5 def self.normalize_integer_array(value) values = Array(value).select(&:present?).map(&:to_i) values.uniq.sort end |