We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 115c399 commit bec29c4Copy full SHA for bec29c4
lib/attr_json/attribute_definition.rb
@@ -130,7 +130,7 @@ def self.lookup_type(type)
130
# serializing, we're kind of stuck with this precision in current implementation.
131
lookup_kwargs = { adapter: nil }
132
if type == :datetime || type == :time
133
- lookup_kwargs = { precision: ActiveSupport::JSON::Encoding.time_precision }
+ lookup_kwargs[:precision] = ActiveSupport::JSON::Encoding.time_precision
134
end
135
136
type = ActiveRecord::Type.lookup(type, **lookup_kwargs)
0 commit comments