
_materialize events don't seem to work
Reported by Jim | November 23rd, 2007 @ 11:52 AM
Hi
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
end
end
Also, is there a way to have default values assigned to a property?
property :user, :string, ;default => "foo" # has default value of nil
Thanks
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »