class Foo
include Mongoid::Document
ALLOWED_VALUES = %w(a b).freeze
field :f
end
> Foo.where(:f.in => Foo::ALLOWED_VALUES).count
RuntimeError: can't modify frozen Array
from /Users/ben/.rvm/gems/ruby-1.9.3-p125@eqm/gems/origin-1.0.10/lib/origin/selector.rb:115:in `map!'
...
E.g:
Seems wrong to be mutating the value passed in...