hi all,
can't load property of type Yaml, like this:

require 'rubygems'
require 'dm-core'
require 'dm-types'

DataMapper.setup(:default, 'sqlite3::memory:')

class Stuff
  include DataMapper::Resource
  property  :id, Serial
  property  :foo, Yaml
end

Stuff.auto_migrate!
s = Stuff.create
s.foo = 'bar' # !> instance variable @field_types not initialized
s.save
ss = Stuff.get 1 # => #<Stuff @id=1 @foo=<not loaded>>

i really can't figure out what is wrong with this code, which seems
straightforward to me. can you help me?
thanks

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamap...@googlegroups.com.
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to