From d0ff4ec1936b6888ce199ef5131c3a2d866a968c Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sat, 30 Jun 2007 03:31:48 +0000 Subject: Don't call unsupported methods on associated objects when using :include, :method with to_xml [manfred, jwilger] Closes #7307 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/author.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test/fixtures/author.rb') diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb index 6b34c7522c..61ba3c1551 100644 --- a/activerecord/test/fixtures/author.rb +++ b/activerecord/test/fixtures/author.rb @@ -67,6 +67,10 @@ class Author < ActiveRecord::Base @post_log = [] end + def label + "#{id}-#{name}" + end + private def log_before_adding(object) @post_log << "before_adding#{object.id}" -- cgit v1.2.3