lib/admin_it/field/field.rb in admin_it-1.2.2 vs lib/admin_it/field/field.rb in admin_it-1.2.3

- old
+ new

@@ -266,10 +266,10 @@ when :readable then values.select { |f| f.readable? } when :writable then values.select { |f| f.writable? } when :sortable then values.select { |f| f.sortable? } when :with_labels then values.select { |f| f.show_label? } when :without_labels then values.select { |f| !f.show_label? } - when Field::TYPES then values.select { |f| f.type == scope } + when *Field::TYPES then values.select { |f| f.type == scope } else values end end def field(name)