#67 invalid

_materialize events don't seem to work

Reported by Jim | November 23rd, 2007 @ 11:52 AM


This is probably more of a question than a bug, but I can't get before_materialize or after_materialize methods to be called.

class User < DataMapper::Base

before_materialize :foo

property :user, :string

def :foo

puts "in foo" # this is never called



Also, is there a way to have default values assigned to a property?

property :user, :string, ;default => "foo" # has default value of nil


Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket