aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/oid/bytea.rb
blob: 36c53d8732bd0946ba1554ebf64903068872218d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module ActiveRecord
  module ConnectionAdapters
    module PostgreSQL
      module OID # :nodoc:
        class Bytea < Type::Binary
          def cast_value(value)
            PGconn.unescape_bytea value
          end
        end
      end
    end
  end
end