Class: BlankAttributes::Types::Array
- Inherits:
-
Object
- Object
- BlankAttributes::Types::Array
- Defined in:
- lib/blank_attributes/types/array.rb
Class Method Summary collapse
Class Method Details
.normalize(value) ⇒ Object
6 7 8 9 10 |
# File 'lib/blank_attributes/types/array.rb', line 6 def normalize(value) return [] if value.blank? return [] unless value.is_a?(::Array) value.reject(&:blank?) end |