Skip to content

Commit

Permalink
fix typo in attribute example [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Mar 5, 2016
1 parent b149edc commit 23e03f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/attributes.rb
Expand Up @@ -119,7 +119,7 @@ module ClassMethods
#
# 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
Expand Down

0 comments on commit 23e03f6

Please sign in to comment.