diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-06 21:11:37 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-06 21:11:37 -0300 |
commit | 2cdf73023cf75b5c5876146d37d970996c5fe191 (patch) | |
tree | 551b32d12e4c252d901db3686ba9873c932be956 /activerecord | |
parent | 17fc6f16eb2be481a4d036bea58b3e4ae0052f3a (diff) | |
parent | 8a6e7631d31b2261f5a9dc6f0adefbe3e72f79d5 (diff) | |
download | rails-2cdf73023cf75b5c5876146d37d970996c5fe191.tar.gz rails-2cdf73023cf75b5c5876146d37d970996c5fe191.tar.bz2 rails-2cdf73023cf75b5c5876146d37d970996c5fe191.zip |
Merge pull request #15554 from sgrif/sg-klass
Removed unused `klass` definitions from types
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/type/binary.rb | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/type/decimal.rb | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/type/float.rb | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/type/integer.rb | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/type/string.rb | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/type/value.rb | 1 |
6 files changed, 0 insertions, 21 deletions
diff --git a/activerecord/lib/active_record/type/binary.rb b/activerecord/lib/active_record/type/binary.rb index 9d10c91fc1..bc93f6e1bf 100644 --- a/activerecord/lib/active_record/type/binary.rb +++ b/activerecord/lib/active_record/type/binary.rb @@ -9,10 +9,6 @@ module ActiveRecord true end - def klass - ::String - end - def type_cast_for_database(value) Data.new(super) end diff --git a/activerecord/lib/active_record/type/decimal.rb b/activerecord/lib/active_record/type/decimal.rb index 6eed005345..a9db51c6ba 100644 --- a/activerecord/lib/active_record/type/decimal.rb +++ b/activerecord/lib/active_record/type/decimal.rb @@ -7,10 +7,6 @@ module ActiveRecord :decimal end - def klass - ::BigDecimal - end - def type_cast_for_schema(value) value.to_s end diff --git a/activerecord/lib/active_record/type/float.rb b/activerecord/lib/active_record/type/float.rb index dc50dae328..42eb44b9a9 100644 --- a/activerecord/lib/active_record/type/float.rb +++ b/activerecord/lib/active_record/type/float.rb @@ -7,10 +7,6 @@ module ActiveRecord :float end - def klass - ::Float - end - alias type_cast_for_database type_cast private diff --git a/activerecord/lib/active_record/type/integer.rb b/activerecord/lib/active_record/type/integer.rb index 1e2147dec9..08477d1303 100644 --- a/activerecord/lib/active_record/type/integer.rb +++ b/activerecord/lib/active_record/type/integer.rb @@ -7,10 +7,6 @@ module ActiveRecord :integer end - def klass - ::Fixnum - end - alias type_cast_for_database type_cast private diff --git a/activerecord/lib/active_record/type/string.rb b/activerecord/lib/active_record/type/string.rb index b3f6ca7691..3b1554bd5a 100644 --- a/activerecord/lib/active_record/type/string.rb +++ b/activerecord/lib/active_record/type/string.rb @@ -9,10 +9,6 @@ module ActiveRecord true end - def klass - ::String - end - private def cast_value(value) diff --git a/activerecord/lib/active_record/type/value.rb b/activerecord/lib/active_record/type/value.rb index c072c1e2b6..4bc3086db3 100644 --- a/activerecord/lib/active_record/type/value.rb +++ b/activerecord/lib/active_record/type/value.rb @@ -48,7 +48,6 @@ module ActiveRecord end def klass # :nodoc: - ::Object end def type_cast_for_write(value) # :nodoc: |