aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/string_key_object.rb
diff options
context:
space:
mode:
authorChristopher Meiklejohn <christopher.meiklejohn@gmail.com>2011-03-14 22:19:47 -0400
committerJon Leighton <j@jonathanleighton.com>2011-05-08 18:37:28 +0100
commit4fbd8adf4824d48aea47a57047d90fb6510cee28 (patch)
tree6db7a372616d0299d840bb632dfe132e730d919d /activerecord/test/models/string_key_object.rb
parenta45f300e5f2d6b6581dd0f0d0f650c83b9773170 (diff)
downloadrails-4fbd8adf4824d48aea47a57047d90fb6510cee28.tar.gz
rails-4fbd8adf4824d48aea47a57047d90fb6510cee28.tar.bz2
rails-4fbd8adf4824d48aea47a57047d90fb6510cee28.zip
Don't quote ID's as Arel will quote them -- follow same conventions as the delete method.
Diffstat (limited to 'activerecord/test/models/string_key_object.rb')
-rw-r--r--activerecord/test/models/string_key_object.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/string_key_object.rb b/activerecord/test/models/string_key_object.rb
new file mode 100644
index 0000000000..f8d4c6e0e4
--- /dev/null
+++ b/activerecord/test/models/string_key_object.rb
@@ -0,0 +1,3 @@
+class StringKeyObject < ActiveRecord::Base
+ set_primary_key :id
+end