search for: nwtf

Displaying 1 result from an estimated 1 matches for "nwtf".

Did you mean: ntf
2009 Jul 14
4
[ActiveRecord::Base].collect {|a,b| ...} weirdness
...iverecord" puts "\nActiveRecord::Base disappears:" [1,String,''foo'',ActiveRecord::Base].collect {|a,b| puts [a,b].inspect} puts "\nActiveRecord::Base stays:" [1,String,''foo'',ActiveRecord::Base].collect {|a| puts [a].inspect} puts "\nwtf?" EOR ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux] Rails 2.3.2 ActiveRecord::Base disappears: [1, nil] [String, nil] ["foo", nil] [nil, nil] ActiveRecord::Base stays: [1] [String] ["foo"] [ActiveRecord::Base] wtf?