aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-03-05 06:48:24 -0700
committerSean Griffin <sean@seantheprogrammer.com>2016-03-05 06:48:24 -0700
commitdf890780f8461eb504d2607594ea47e68d0e0b2d (patch)
tree53b1695658ee27cd42ac02f04a296b079bcbb7fe
parentb149edcd96834e7e3c00f6bc60a83908ebc660a9 (diff)
parent23e03f6e019da2d0847d16a3b3e97a75cbd80fe2 (diff)
downloadrails-df890780f8461eb504d2607594ea47e68d0e0b2d.tar.gz
rails-df890780f8461eb504d2607594ea47e68d0e0b2d.tar.bz2
rails-df890780f8461eb504d2607594ea47e68d0e0b2d.zip
Merge pull request #24075 from y-yagi/fix_typo
fix typo in attribute example [ci skip]
-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