This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-github
/
rails--rails
Watch
1
Star
0
Fork
You've already forked rails--rails
0
mirror of
https://github.com/rails/rails.git
synced
2022-11-09 12:12:34 -05:00
Code
Releases
Activity
f47ef2365e
rails--rails
/
activerecord
/
test
/
models
/
string_key_object.rb
6 lines
103 B
Ruby
Raw
Normal View
History
Unescape
Escape
Use frozen-string-literal in ActiveRecord
2017-07-09 13:41:28 -04:00
# frozen_string_literal: true
Don't quote ID's as Arel will quote them -- follow same conventions as the delete method.
2011-03-14 22:19:47 -04:00
class
StringKeyObject
<
ActiveRecord
::
Base
Deprecate set_primary_key in favour of self.primary_key=
2011-11-29 13:58:41 -05:00
self
.
primary_key
=
:id
Don't quote ID's as Arel will quote them -- follow same conventions as the delete method.
2011-03-14 22:19:47 -04:00
end
Copy permalink