aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-03-05 22:45:33 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-03-05 22:45:33 +0900
commit23e03f6e019da2d0847d16a3b3e97a75cbd80fe2 (patch)
tree53b1695658ee27cd42ac02f04a296b079bcbb7fe /activerecord
parentb149edcd96834e7e3c00f6bc60a83908ebc660a9 (diff)
downloadrails-23e03f6e019da2d0847d16a3b3e97a75cbd80fe2.tar.gz
rails-23e03f6e019da2d0847d16a3b3e97a75cbd80fe2.tar.bz2
rails-23e03f6e019da2d0847d16a3b3e97a75cbd80fe2.zip
fix typo in attribute example [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attributes.rb b/activerecord/lib/active_record/attributes.rb
index 5d0405c3be..50a74ab18a 100644
--- a/activerecord/lib/active_record/attributes.rb
+++ b/activerecord/lib/active_record/attributes.rb
@@ -119,7 +119,7 @@ module ActiveRecord
#
# class MoneyType < ActiveRecord::Type::Integer
# def cast(value)
- # if !value.kind_of(Numeric) && value.include?('$')
+ # if !value.kind_of?(Numeric) && value.include?('$')
# price_in_dollars = value.gsub(/\$/, '').to_f
# super(price_in_dollars * 100)
# else