支援json字段sql
ransacker :json_key do |parent| Arel.sql "(#{parent.table.name}.json_column->>'json_key')" end
支援hstorejson
ransacker :hstore_key do |parent| Arel::Nodes::InfixOperation.new('->', parent.table[:hstore_column], 'hstore_key') end