aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/author.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-06-30 03:31:48 +0000
committerMichael Koziarski <michael@koziarski.com>2007-06-30 03:31:48 +0000
commitd0ff4ec1936b6888ce199ef5131c3a2d866a968c (patch)
tree2432d3e567b68d6ee2a0e328ff8b2cd9438aa075 /activerecord/test/fixtures/author.rb
parent20045df2606a6c0c62bacfb9f9cb815ed11f7dd8 (diff)
downloadrails-d0ff4ec1936b6888ce199ef5131c3a2d866a968c.tar.gz
rails-d0ff4ec1936b6888ce199ef5131c3a2d866a968c.tar.bz2
rails-d0ff4ec1936b6888ce199ef5131c3a2d866a968c.zip
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
Diffstat (limited to 'activerecord/test/fixtures/author.rb')
-rw-r--r--activerecord/test/fixtures/author.rb4
1 files changed, 4 insertions, 0 deletions
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}"