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:
parent
870f9dfacb
commit
5a592cf620
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue