#69 ✓resolved

_materialize events don't seem to work

Reported by Jim | November 23rd, 2007 @ 12:00 PM


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

  • Sam Smoot

    Sam Smoot December 27th, 2007 @ 10:50 AM

    • Milestone cleared.
    • State changed from “new” to “resolved”

    The materialize events are specced and working now. Not sure at what point that was resolved, but my specs yesterday worked right off the bat.

    Defaults aren't really fully specced/supported. I couldn't say for sure. Feel free to open a separate ticket on those.

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