ankane / pghero

A performance dashboard for Postgres
MIT License
8.16k stars 452 forks source link

`undefined method 'symbolize_keys'` when running on Rails' main branch #500

Closed luizkowalski closed 5 months ago

luizkowalski commented 5 months ago

hey

I'm getting this error when running PgHero.capture_query_stats with Rails main:

NoMethodError: undefined method `symbolize_keys' for an instance of ActiveRecord::Result::IndexedRow

(app):1:in `<top (required)>': undefined method `symbolize_keys' for an instance of ActiveRecord::Result::IndexedRow (NoMethodError)

indexed_rows.each(&block)

I guess it has something to do with this commit.

I will dig a bit more when I get some time

ankane commented 5 months ago

Hi @luizkowalski, unreleased versions of Active Record aren't supported, but pushed a fix in the commit above.

luizkowalski commented 5 months ago

Thanks, @ankane, much appreciated!