diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-02-07 17:36:22 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-02-07 17:36:22 -0700 |
commit | 1492e83e49f74b1d874585000bad5368d9f09218 (patch) | |
tree | d51bf5354264b3b8843101ee331451f14f231505 /activerecord/lib/active_record/type/helpers/numeric.rb | |
parent | 16629c099ca30895c90661d5cbce40e218f0984e (diff) | |
download | rails-1492e83e49f74b1d874585000bad5368d9f09218.tar.gz rails-1492e83e49f74b1d874585000bad5368d9f09218.tar.bz2 rails-1492e83e49f74b1d874585000bad5368d9f09218.zip |
rm `Type#number?`
This predicate is only used in `query_attribute`, and is relatively easy
to remove without adding a bunch of is a checks.
Diffstat (limited to 'activerecord/lib/active_record/type/helpers/numeric.rb')
-rw-r--r-- | activerecord/lib/active_record/type/helpers/numeric.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/type/helpers/numeric.rb b/activerecord/lib/active_record/type/helpers/numeric.rb index 86888eef75..b0d4f03117 100644 --- a/activerecord/lib/active_record/type/helpers/numeric.rb +++ b/activerecord/lib/active_record/type/helpers/numeric.rb @@ -2,10 +2,6 @@ module ActiveRecord module Type module Helpers module Numeric # :nodoc: - def number? - true - end - def type_cast(value) value = case value when true then 1 |