diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-02-06 13:44:40 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-02-06 13:44:40 -0700 |
commit | 009e3d0b2906df35339e74a8308d07863b33b648 (patch) | |
tree | 4c90968e9738a51fc90b601a552523c1361af12f /activerecord/lib/active_record | |
parent | d2db3213608166c733e1bcf102fa9dee986f31d8 (diff) | |
download | rails-009e3d0b2906df35339e74a8308d07863b33b648.tar.gz rails-009e3d0b2906df35339e74a8308d07863b33b648.tar.bz2 rails-009e3d0b2906df35339e74a8308d07863b33b648.zip |
A symbol can be passed to `attribute`, which should be documented
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/attributes.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/attributes.rb b/activerecord/lib/active_record/attributes.rb index bef6020d71..8ba341efa6 100644 --- a/activerecord/lib/active_record/attributes.rb +++ b/activerecord/lib/active_record/attributes.rb @@ -23,8 +23,9 @@ module ActiveRecord # +name+ The name of the methods to define attribute methods for, and the # column which this will persist to. # - # +cast_type+ A type object that contains information about how to type cast the value. - # See the examples section for more information. + # +cast_type+ A symbol such as +:string+ or +:integer+, or a type object + # to be used for this attribute. See the examples below for more + # information about providing custom type objects. # # ==== Options # The following options are accepted: @@ -112,7 +113,7 @@ module ActiveRecord # store_listing.price_in_cents # => 1000 # # For more details on creating custom types, see the documentation for - # ActiveRecord::Type::Value + # ActiveRecord::Type::Value. # # ==== Querying # |