1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add :call-seq: to hide the internal block argument [ci skip]

Similar to https://github.com/rails/rails/pull/28640#discussion_r112368222.
This commit is contained in:
Ryuta Kamizono 2020-11-25 22:06:48 +09:00
parent 870f9dfacb
commit 5a592cf620

View file

@ -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