beerlington/classy_enum — Issue #8: validates_uniqueness_of in Rails 3.1
Author: bradrobertson
Created: 2011-12-13 21:13:32+00:00
State: open

I know you've listed this as a known issue, but it's now a major blocker for me :(

triggering validations on my model that uses `validates_uniqueness_of` for an enum column causes this error:

> TypeError: Cannot visit ProviderTwitter
> from /Users/bradrobertson/.rvm/gems/ruby-1.9.3-p0@influitive/gems/arel-2.2.1/lib/arel/visitors/visitor.rb:25:in `rescue in visit'