lib/hario.rb in hario-0.3.1 vs lib/hario.rb in hario-0.3.2

- old
+ new

@@ -7,9 +7,10 @@ HARIO_APPLY_TYPES = %w( filters pluck ).map(&:to_sym) attr_reader :hario_attributes_list def search(filters, pluck = []) + pluck ||= [] pluck = pluck.reject{ |p| p.nil? || p.empty? } s = all s = s.apply_filters(filters) if filters s = s.apply_pluck(pluck) if pluck.any?