diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-20 18:02:49 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-20 18:02:49 -0300 |
commit | c4640ca8053c3d71ac0ff7c644fcbfa2ba54e275 (patch) | |
tree | f2de5e771b77ae5594f2230afd387a591f6323e8 /activerecord/lib/active_record/connection_adapters/type/numeric.rb | |
parent | 25c672637206a2c48fd829c58596c788b6e31c5d (diff) | |
parent | 50869f37d379a09a69b21399ae4360d7c13017c1 (diff) | |
download | rails-c4640ca8053c3d71ac0ff7c644fcbfa2ba54e275.tar.gz rails-c4640ca8053c3d71ac0ff7c644fcbfa2ba54e275.tar.bz2 rails-c4640ca8053c3d71ac0ff7c644fcbfa2ba54e275.zip |
Merge pull request #15204 from sgrif/sg-delegate-predicates
Delegate predicate methods to injected type object on Column
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type/numeric.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/type/numeric.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/numeric.rb b/activerecord/lib/active_record/connection_adapters/type/numeric.rb new file mode 100644 index 0000000000..a440de4d14 --- /dev/null +++ b/activerecord/lib/active_record/connection_adapters/type/numeric.rb @@ -0,0 +1,11 @@ +module ActiveRecord + module ConnectionAdapters + module Type + module Numeric # :nodoc: + def number? + true + end + end + end + end +end |