We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0fb817 commit 8034a43Copy full SHA for 8034a43
activemodel/lib/active_model/attributes.rb
@@ -16,7 +16,7 @@ module Attributes #:nodoc:
16
end
17
18
module ClassMethods
19
- def attribute(name, type = Type::Value.new, **options)
+ def attribute(name, type = Type.default_value, **options)
20
name = name.to_s
21
if type.is_a?(Symbol)
22
type = ActiveModel::Type.lookup(type, **options.except(:default))
0 commit comments