method

encode_array

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: Quoting

Not found

The exact documentation you were looking for could not be found. Here is the best guess.

encode_array(array_data) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 166
          def encode_array(array_data)
            encoder = array_data.encoder
            values = type_cast_array(array_data.values)

            result = encoder.encode(values)
            if encoding = determine_encoding_of_strings_in_array(values)
              result.force_encoding(encoding)
            end
            result
          end
Register or log in to add new notes.