Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion decimal field using sqlite

Received: by 10.68.236.170 with SMTP id uv10mr6420617pbc.4.1334469622093;
        Sat, 14 Apr 2012 23:00:22 -0700 (PDT)
X-BeenThere: datamapper@googlegroups.com
Received: by 10.68.136.232 with SMTP id qd8ls9042271pbb.0.gmail; Sat, 14 Apr
 2012 23:00:20 -0700 (PDT)
Received: by 10.68.218.103 with SMTP id pf7mr1389328pbc.11.1334469620459;
        Sat, 14 Apr 2012 23:00:20 -0700 (PDT)
Date: Sat, 14 Apr 2012 23:00:19 -0700 (PDT)
From: "Dan Kubb (dkubb)" <dan.k...@gmail.com>
To: datamapper@googlegroups.com
Message-ID: <3307652.954.1334469619721.JavaMail.geo-discussion-forums@pbiu10>
In-Reply-To: <CALjQBOFvrTZLvqVqocFK3nehQ2DpPtwRpXs0sQBK0SrUvLMpDQ@mail.gmail.com>
References: <c81bb827-1b9d-4512-bd6d-126d0ec3cdef@f27g2000yqc.googlegroups.com>
 <19803301.1203.1334007669216.JavaMail.geo-discussion-forums@pbcto7>
 <CALjQBOGZvwZ8eo_Tfp2qHeWmSmGJDLkHVyCqmJ7uMYyZXVCnWA@mail.gmail.com>
 <CALjQBOFvrTZLvqVqocFK3nehQ2DpPtwRpXs0sQBK0SrUvLMpDQ@mail.gmail.com>
Subject: Re: [DataMapper] Re: decimal field using sqlite
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_952_26493751.1334469619720"

------=_Part_952_26493751.1334469619720
Content-Type: multipart/alternative; 
	boundary="----=_Part_953_13164826.1334469619720"

------=_Part_953_13164826.1334469619720
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi Arthur,

So, is possible a new property, that inherit of Decimal, but, on save it 
> execute to_i.to_s ? 
>

Sure, check out some of the types in dm-types to see how you make custom 
types.

I haven't tested it, but I'm guessing you'll be able to implement this type 
in probably no more than 5-10 lines of code.

-- 

Dan 

------=_Part_953_13164826.1334469619720
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

Hi Arthur,<br><br><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div><div style="text-align:left">So, is possible a new property, that inherit of Decimal, but, on save it execute to_i.to_s ? </div></div></blockquote><div><br></div><div>Sure, check out some of the types in dm-types to see how you make custom types.</div><div><br></div><div>I haven't tested it, but I'm guessing you'll be able to implement this type in probably no more than 5-10 lines of code.</div><div><br></div><div>--&nbsp;</div><div><br></div><div>Dan&nbsp;</div>
------=_Part_953_13164826.1334469619720--

------=_Part_952_26493751.1334469619720--