🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #720

Re: Zmiana wartości dla całego obiektu

#720
From: Radarek
Date: Tue, 27 Nov 2007 19:29
11 lines
1312 bytes
Przemysław Kowalczyk pisze:
>> @post.attributes = hash
> 
> nie wiem, czy to nie wyniluje atrybutow, ktorych bedzie brakowalo w 
> hash. moze bezpieczniej bedzie:
> 
> @post.attributes.merge!(hash)
> 

Nie wyzeruje - sprawdziłem. Widocznie sama metoda attributes= robie 
merge na otrzymanym hashu.
Technical Details
Message-ID: <fihr7j$b36$1@bobo.ds5.agh.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!localhost!not-for-mail
References: <02150983-c65d-4b3f-aca0-40e0df553b55@n20g2000hsh.googlegroups.com> <fih9hv$s0t$1@bobo.ds5.agh.edu.pl> <op.t2grk8dbuw9fft@negative-361apc>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.cyf-kr.edu.pl!agh.edu.pl!news.agh.edu.pl!localhost!not-for-mail
From: Radarek <radarrek@poczta.fm>
Newsgroups: pl.comp.lang.ruby
Subject: Re: Zmiana wartości dla całego
 obiektu
Date: Tue, 27 Nov 2007 20:29:56 +0100
Organization: News serwer at news.ds5.agh.edu.pl
Lines: 11
Message-ID: <fihr7j$b36$1@bobo.ds5.agh.edu.pl>
References: <02150983-c65d-4b3f-aca0-40e0df553b55@n20g2000hsh.googlegroups.com> <fih9hv$s0t$1@bobo.ds5.agh.edu.pl> <op.t2grk8dbuw9fft@negative-361apc>
NNTP-Posting-Host: 192.168.128.44
Mime-Version: 1.0
X-Trace: bobo.ds5.agh.edu.pl 1196191795 11366 192.168.128.44 (27 Nov 2007 19:29:55 GMT)
X-Complaints-To: abuse@localhost
NNTP-Posting-Date: Tue, 27 Nov 2007 19:29:55 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.6 (X11/20071022)
In-Reply-To: <op.t2grk8dbuw9fft@negative-361apc>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit