Skip to content

Commit 8034a43

Browse files
committed
Reuse the same ActiveModel::Type::Value
1 parent e0fb817 commit 8034a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activemodel/lib/active_model/attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Attributes #:nodoc:
1616
end
1717

1818
module ClassMethods
19-
def attribute(name, type = Type::Value.new, **options)
19+
def attribute(name, type = Type.default_value, **options)
2020
name = name.to_s
2121
if type.is_a?(Symbol)
2222
type = ActiveModel::Type.lookup(type, **options.except(:default))

0 commit comments

Comments
 (0)