mrinterweb/activerecord-pg_array — pull request #1 by rdblakemore (2014-09-04 23:39:10+00:00)
Title: Improve finder method to prevent PG::Syntax errors if array is empty

Noticed that an empty array was throwing an SQL syntax error due to the empty 'IN' clause of the SQL being generated. Added a check to see if there are items in the array before the SQL is executed. This implementation is based on README, where default value for the column is [].

Test method included...