Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

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

Closed
ywen opened this issue Jan 18, 2011 · 1 comment
Closed

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

ywen opened this issue Jan 18, 2011 · 1 comment

Comments

@ywen
Copy link

ywen commented Jan 18, 2011

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
Copy link
Contributor

solnic commented Jan 18, 2011

this issue has been already fixed on master

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants