aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/company.rb
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2006-04-29 23:00:47 +0000
committerMarcel Molina <marcel@vernix.org>2006-04-29 23:00:47 +0000
commit3fec943aca9ab73bf00d5dffa3f73452f33bab88 (patch)
treecd708510c8be8951440580f6a233674b8066e6bf /activerecord/test/fixtures/company.rb
parentaa72c465ec4aa641e9ea161110a43ad9c02d167b (diff)
downloadrails-3fec943aca9ab73bf00d5dffa3f73452f33bab88.tar.gz
rails-3fec943aca9ab73bf00d5dffa3f73452f33bab88.tar.bz2
rails-3fec943aca9ab73bf00d5dffa3f73452f33bab88.zip
Allow AR::Base#to_xml to include methods too. Closes #4921. [johan@textdrive.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4314 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/company.rb')
-rwxr-xr-xactiverecord/test/fixtures/company.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/company.rb b/activerecord/test/fixtures/company.rb
index 526748784e..250deebb21 100755
--- a/activerecord/test/fixtures/company.rb
+++ b/activerecord/test/fixtures/company.rb
@@ -5,6 +5,10 @@ class Company < ActiveRecord::Base
validates_presence_of :name
has_one :dummy_account, :foreign_key => "firm_id", :class_name => "Account"
+
+ def arbitrary_method
+ "I am Jack's profound disappointment"
+ end
end