提交 928f4662 编写于 作者: S Sean Griffin 提交者: GitHub

Merge pull request #26915 from jules2689/time-zone-conversion-inherited-bug

Fixes an issue where time_zone_conversion that causes an exception in…
......@@ -70,6 +70,7 @@ module ClassMethods
private
def inherited(subclass)
super
# We need to apply this decorator here, rather than on module inclusion. The closure
# created by the matcher would otherwise evaluate for `ActiveRecord::Base`, not the
# sub class being decorated. As such, changes to `time_zone_aware_attributes`, or
......@@ -80,7 +81,6 @@ def inherited(subclass)
TimeZoneConverter.new(type)
end
end
super
end
def create_time_zone_conversion_attribute?(name, cast_type)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册