heartcombo/has_scope

Array Documentation is Missing

narutoo9x opened this issue · 2 comments

how to pass an array of value to type: array? I assume it will be like this:

has_scope :by_color, type: :array, as: :color

/labels?color=blue,green,yellow

This is how you pass array parameters in rails:
/labels?color[]=blue&color[]=green&color[]=yellow

/labels?color[]=blue&color[]=green&color[]=yellow

It look so ugly, messy