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