aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-03-20 06:45:34 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-03-20 06:45:34 +0000
commit1aff68d61574410fa942aa34ec261c68565e48c1 (patch)
treebc23d1bb58cedaf97a8cf4afff59454b25129735 /activerecord/test/fixtures
parent89c0ab6b82410b826dacb53803a36b935bae36cb (diff)
downloadrails-1aff68d61574410fa942aa34ec261c68565e48c1.tar.gz
rails-1aff68d61574410fa942aa34ec261c68565e48c1.tar.bz2
rails-1aff68d61574410fa942aa34ec261c68565e48c1.zip
Fix bug introduced by changeset 3679 which caused custom attribute? methods to be overridden. Also ensure that ? methods are defined even if read method is customised. (closes #3677) [jonathan@bluewire.net.nz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
-rwxr-xr-xactiverecord/test/fixtures/company.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/company.rb b/activerecord/test/fixtures/company.rb
index b0694ff361..59a7cdd13e 100755
--- a/activerecord/test/fixtures/company.rb
+++ b/activerecord/test/fixtures/company.rb
@@ -57,6 +57,15 @@ class Client < Company
end
true
end
+
+ # Used to test that read and question methods are not generated for these attributes
+ def ruby_type
+ read_attribute :ruby_type
+ end
+
+ def rating?
+ query_attribute :rating
+ end
end