[Rails-core] Issue / code smell in AssociationProxy

2011-03-29 Thread Pascal Hurni
I came across an issue in my code and after a hard debug session I found something that smells. First the context of my issue. I have a AR object that has a polymorphic belongs_to currently tied to nothing, I want to dump it to YAML. record.to_yaml This raises the following exception:

[Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread Aaron Patterson
ZOMG HAPPY TUESDAY (UTC-7)!!! 3 I am happy to announce that the first release candidate for Rails 3.0.6 has been pushed to rubygems.org. ## Release Candidate: What does it mean? The release candidate is very similar to what we will actually release for version 3.0.6. The reason that we

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread Ryan Bigg
You should run `bundle update` rather than `bundle install`, because `bundle update` ignores updates the Gemfile.lock file, whereas `bundle install` doesn't. -- Ryan Bigg On Wednesday, 30 March 2011 at 8:06 AM, Aaron Patterson wrote: ZOMG HAPPY TUESDAY (UTC-7)!!! 3 I am happy to

[Rails-core] Re: ActiveModel Serialization API: design and documentation

2011-03-29 Thread Stewart
Would it be possible to have a generic Serialization class that uses delegates to perform Serialization to different formats? It seems the reason why there is a different interface for xml as their is to json is that rails implements an number of to_json methods to a whole lot of existing classes

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread Robert Pankowecki
On Tue, Mar 29, 2011 at 11:30 PM, Ryan Bigg radarliste...@gmail.com wrote: We are asking you (yes you!) to *try out* the release candidate. If something that changed between 3.0.5 and this release candidate breaks your application, we want to know about it! ActiveModel::Name does not have

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread Robert Pankowecki
I also found a bug that occurs on 3.0.5 ruby-1.9.2-p136 :004 Time.now = 2011-03-30 01:15:20 +0200 ruby-1.9.2-p136 :005 Date.today = Wed, 30 Mar 2011 ruby-1.9.2-p136 :006 Date.yesterday = Mon, 28 Mar 2011 ruby-1.9.2-p136 :007 Time.zone = (GMT+00:00) UTC ruby-1.9.2-p136 :008 Date.tomorrow

Re: [Rails-core] [ANN] Rails 3.0.6.rc1

2011-03-29 Thread John Firebaugh
On Tue, Mar 29, 2011 at 3:14 PM, Robert Pankowecki robert.pankowe...@gmail.com wrote: On Tue, Mar 29, 2011 at 11:30 PM, Ryan Bigg radarliste...@gmail.com wrote: We are asking you (yes you!) to *try out* the release candidate. If something that changed between 3.0.5 and this release