I'd imagine (though Michael can verify this) that the block should
look something like this

with_default_options {:precision => 8, :scale => 2, :nullable =>
false} do
  property :minimum, BigDecimal
  property :maximum, BigDecimal
end

with_default_options {:size => (10..100), :nullable => false} do
  property :firstname, String
  property :lastname, String
end

On Jan 14, 2:08 pm, Earle Clubb <[email protected]> wrote:
> Michael Klishin wrote:
> > On 14.01.2009, at 13:54, heda wrote:
>
> >> i've already got a project where I could use atleast two blocks of
> >> default options in more than one model. it would certainly make them
> >> arrid extra-DRY!
>
> > Alright I am convinced about block form. Next question is, I am going  
> > to add it
> > to dkubb/dm-core, is it fine with you, or you want a backport to sam/
> > dm-core?
>
> > Dan's tree may or may not have a work-in-progress refactorings and  
> > maybe it'd be
> > better to go with a stable/old tree if you don't want to be an "Early  
> > Adopter" movie start ;)
>
> > MK
>
> So what would the usage look like in the block form?
>
> Earle
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to