mirror of https://github.com/rails/rails
Whitespaces
This commit is contained in:
parent
3e810adef5
commit
7767b4f76b
|
@ -74,6 +74,7 @@ module ActiveRecord
|
|||
if create_time_zone_conversion_attribute?(name, cast_type)
|
||||
cast_type = TimeZoneConverter.new(cast_type)
|
||||
end
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
|
|
|
@ -187,6 +187,7 @@ module ActiveRecord
|
|||
if lock_optimistically && name == locking_column
|
||||
cast_type = LockingType.new(cast_type)
|
||||
end
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
|
|
|
@ -634,9 +634,11 @@ module ActiveRecord
|
|||
|
||||
def type_for_column(column)
|
||||
type = connection.lookup_cast_type_from_column(column)
|
||||
|
||||
if immutable_strings_by_default && type.respond_to?(:to_immutable_string)
|
||||
type = type.to_immutable_string
|
||||
end
|
||||
|
||||
type
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue