mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Change LockingType
to use DelegateClass
Significantly faster than `SimpleDelegator`.
This commit is contained in:
parent
20649697ce
commit
a2c80a8945
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
class LockingType < SimpleDelegator # :nodoc:
|
||||
class LockingType < DelegateClass(Type::Value) # :nodoc:
|
||||
def type_cast_from_database(value)
|
||||
# `nil` *should* be changed to 0
|
||||
super.to_i
|
||||
|
|
Loading…
Reference in a new issue