aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures
diff options
context:
space:
mode:
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