method

hstore_to_string

hstore_to_string(object, array_member = false)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/postgresql/cast.rb, line 38
        def hstore_to_string(object, array_member = false)
          if Hash === object
            string = object.map { |k, v| "#{escape_hstore(k)}=>#{escape_hstore(v)}" }.join(',')
            string = escape_hstore(string) if array_member
            string
          else
            object
          end
        end