:-1: -- we have explicit mapping for this case. 

> On Dec 5, 2013, at 5:16, Rafael Mendonça França <notifications@github.com> wrote:
> 
> In activerecord/test/cases/enum_test.rb:
> 
> > @@ -63,4 +63,22 @@ class EnumTest < ActiveRecord::TestCase
> >      assert_equal 1, Book::STATUS["written"]
> >      assert_equal 2, Book::STATUS[:published]
> >    end
> > +
> > +  test "implicit mapping with skipped values" do
> > +    model = Class.new(ActiveRecord::Base) { enum category: [:a, nil, :c, :d, nil] }
> I have to agree with @senny, I have no idea what is happening here.
> 
> —
> Reply to this email directly or view it on GitHub.