11
How can I run destroy_all on an array?
I've got the follow query:
spam_users = User.find_by_sql("SELECT * FROM users WHERE email ~* '21cn.com'")
I've tried running spam_users.destroy_all but I get undefined method 'destroy_all' for #<Array:0x10b09ce30>.
I'm running Rails 2.3.8 in this particular app along with PostgreSQL.