aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/examples/.gitignore
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-11-09 14:28:22 +0900
committerAaron Patterson <aaron.patterson@gmail.com>2012-11-09 14:28:22 +0900
commitdd0040d19f2b161201fd54e21fc807fb987f016d (patch)
tree56704b21f5c8f574c320a3b8b5512ebb6e71f1ac /activerecord/examples/.gitignore
parent3ae8d6d67cd86213c2e48d5471cf2634abc13bb3 (diff)
downloadrails-dd0040d19f2b161201fd54e21fc807fb987f016d.tar.gz
rails-dd0040d19f2b161201fd54e21fc807fb987f016d.tar.bz2
rails-dd0040d19f2b161201fd54e21fc807fb987f016d.zip
implement to_a and to_ary so that the Array() call in template.rb will
not raise so many exceptions: https://github.com/rails/rails/blob/master/actionpack/lib/action_view/template.rb#L126 irb(main):001:0> class Foo; def method_missing(*args); super; end end => nil irb(main):002:0> $DEBUG = true => true irb(main):003:0> Array(Foo.new) Exception `NoMethodError' at (irb):1 - undefined method `to_ary' for #<Foo:0x007f854390e488> Exception `NoMethodError' at (irb):1 - undefined method `to_a' for #<Foo:0x007f854390e488> => [#<Foo:0x007f854390e488>] irb(main):004:0>
Diffstat (limited to 'activerecord/examples/.gitignore')
0 files changed, 0 insertions, 0 deletions