Avoid needless complexity
opts = {:size => (10..100), :scale =>2, :nullable => false}
property :maximum, BigDecimal, opts
property :minimum, BigDecimal, opts

===
~Adam



On Wed, Jan 14, 2009 at 9:01 AM, Michael Klishin <
[email protected]> wrote:

>
>
> On 14.01.2009, at 17:13, heda wrote:
>
> > 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
>
>
> Correct
>
> MK
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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