I have two models: Country
and Resort
.
Resort
has field point with type "point".
Model Country
has_many
Resort
s.
When i get countries resorts with kaminari( .page(params[:page]).per(20) )
i have an error:
PG::UndefinedFunction: ERROR: could not identify an equality operator for type point
LINE 1: SELECT DISTINCT "resorts".* FROM "resorts" INNER JOIN "coun...
^
: SELECT DISTINCT "resorts".* FROM "resorts" INNER JOIN "country_resorts" ON "resorts"."id" = "country_resorts"."resort_id" WHERE "country_resorts"."country_id" = $1 AND "country_resorts"."what" = $2 LIMIT 20 OFFSET 0
PG::UndefinedFunction: ERROR: could not identify an equality operator for type point
LINE 1: SELECT DISTINCT "resorts".* FROM "resorts" INNER JOIN "coun...
If i get resorts without kaminari i get normal result.
How i can resolve this issue?