Re: 3 small things

2008-05-12 Thread Jeremy Evans
On May 9, 3:57 am, "ARAI Shunichi" <[EMAIL PROTECTED]> wrote: > Hi all, > > I've started using Sequel in my new project, and I have 3 small requests. > > 1. Sequel.connect should take block > > I want to write like: > > Sequel.connect('postgres://test:[EMAIL PROTECTED]/egalite') { |db| > >

Re: 3 small things

2008-05-10 Thread ARAI Shunichi
Thanks dusty, oops. blush - Mellowtone Inc. - life is a melody Shunichi Arai http://www.mellowtone.co.jp http://asiajin.com/blog/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To po

Re: 3 small things

2008-05-09 Thread dusty
> 2. in a model method 'self' doesn't properly work > > class User < Sequel::Model >   def User.digest(password) >     Digest::MD5.hexdigest(password) >   end >   def password=(password) >     self.hashed_password = self.digest(password) # <- latter 'self' doesn't > work >   end > end > > I had to

3 small things

2008-05-09 Thread ARAI Shunichi
Hi all, I've started using Sequel in my new project, and I have 3 small requests. 1. Sequel.connect should take block I want to write like: Sequel.connect('postgres://test:[EMAIL PROTECTED]/egalite') { |db| } not like: begin db = Sequel.connect('postgres://test:[EMAIL PROTECTED]/ega