mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-23 22:26:48 +09:00
Fix fetching missing values
This commit is contained in:
1 parent
bea2c89c2b
commit
f56e33e323
1 file changed
+1
-1
@@ -21,7 +21,7 @@ module ActiveRecord
|
|||||||
value = args.first
|
value = args.first
|
||||||
@data[key] = ActiveModel::Type.lookup(key_type).cast(value)
|
@data[key] = ActiveModel::Type.lookup(key_type).cast(value)
|
||||||
else
|
else
|
||||||
@data.fetch(key)
|
@data[key]
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
super
|
super
|
||||||
|
|||||||
Reference in new issue
Block a user