aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/helpers/numeric.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-02-07 17:36:22 -0700
committerSean Griffin <sean@thoughtbot.com>2015-02-07 17:36:22 -0700
commit1492e83e49f74b1d874585000bad5368d9f09218 (patch)
treed51bf5354264b3b8843101ee331451f14f231505 /activerecord/lib/active_record/type/helpers/numeric.rb
parent16629c099ca30895c90661d5cbce40e218f0984e (diff)
downloadrails-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.rb4
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