datamapper / dm-types

DataMapper plugin providing extra data types
http://datamapper.org/
MIT License
55 stars 80 forks source link

Enum type lost its value in belongs_to association when not saving #8

Closed ywen closed 13 years ago

ywen commented 13 years ago

For example:

in Class A belongs_to :b

in class B property :c, Enum[:one, :two]

In irb if I do:

a = A.new(:b => B.new(:c => :one))

a.b.c => nil

solnic commented 13 years ago

this issue has been already fixed on master