提交 df890780 编写于 作者: S Sean Griffin

Merge pull request #24075 from y-yagi/fix_typo

fix typo in attribute example [ci skip]
...@@ -119,7 +119,7 @@ module ClassMethods ...@@ -119,7 +119,7 @@ module ClassMethods
# #
# class MoneyType < ActiveRecord::Type::Integer # class MoneyType < ActiveRecord::Type::Integer
# def cast(value) # def cast(value)
# if !value.kind_of(Numeric) && value.include?('$') # if !value.kind_of?(Numeric) && value.include?('$')
# price_in_dollars = value.gsub(/\$/, '').to_f # price_in_dollars = value.gsub(/\$/, '').to_f
# super(price_in_dollars * 100) # super(price_in_dollars * 100)
# else # else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册