From 5a592cf620a3770f697388e347137d85d7592ac9 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 25 Nov 2020 22:06:48 +0900 Subject: [PATCH] Add `:call-seq:` to hide the internal block argument [ci skip] Similar to https://github.com/rails/rails/pull/28640#discussion_r112368222. --- activerecord/lib/active_record/attributes.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activerecord/lib/active_record/attributes.rb b/activerecord/lib/active_record/attributes.rb index e1fd81e0ba..903a373bdc 100644 --- a/activerecord/lib/active_record/attributes.rb +++ b/activerecord/lib/active_record/attributes.rb @@ -12,6 +12,9 @@ module ActiveRecord end module ClassMethods + ## + # :call-seq: attribute(name, cast_type = nil, **options) + # # Defines an attribute with a type on this model. It will override the # type of existing attributes if needed. This allows control over how # values are converted to and from SQL when assigned to a model. It also