aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/column.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-08-09 20:04:37 +0530
committerVipul A M <vipulnsward@gmail.com>2013-08-09 20:04:37 +0530
commit5ef02de131d1d655f15673cbf5593589d97bf675 (patch)
treea3ee3dfc6847b330803162ab320751c5e4f42b20 /activerecord/lib/active_record/connection_adapters/column.rb
parent0053b2a1c497832da23f6dcb3ea628f3c8bb4d30 (diff)
downloadrails-5ef02de131d1d655f15673cbf5593589d97bf675.tar.gz
rails-5ef02de131d1d655f15673cbf5593589d97bf675.tar.bz2
rails-5ef02de131d1d655f15673cbf5593589d97bf675.zip
Remove redundant `string_to_binary` from type-casting
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/column.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb
index cc02b313e1..bccfa41ad1 100644
--- a/activerecord/lib/active_record/connection_adapters/column.rb
+++ b/activerecord/lib/active_record/connection_adapters/column.rb
@@ -119,17 +119,7 @@ module ActiveRecord
type_cast(default)
end
- # Used to convert from Strings to BLOBs
- def string_to_binary(value)
- self.class.string_to_binary(value)
- end
-
class << self
- # Used to convert from Strings to BLOBs
- def string_to_binary(value)
- value
- end
-
# Used to convert from BLOBs to Strings
def binary_to_string(value)
value