From 009e3d0b2906df35339e74a8308d07863b33b648 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Fri, 6 Feb 2015 13:44:40 -0700 Subject: A symbol can be passed to `attribute`, which should be documented --- activerecord/lib/active_record/attributes.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'activerecord/lib/active_record') 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 # -- cgit v1.2.3