How to use Ruby 2.1.1 user defined type in postgresql?

how to call the following stored procedure in postgresql using bind variables in ruby
create or replace function el_folder_save
 i_privacy_list el_privacy_type[]
) ...

CREATE TYPE el_privacy_type AS
 profile_id bigint,
 privacy_type smallint
September 26th 19 at 06:59
1 answer
September 26th 19 at 07:01
a year later, I will answer myself :) need to use json, it will solve the problem of transferring complex data, postgresql 9.4 is working successfully with json.
Oftop. and Yes instead of RoR, I chose django in python has the ability to use custom types for transmission in postgresql

Find more questions by tags PostgreSQLRuby