You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project I use clickhouse-activerecord together with ActiveAdmin 3.2.0. I've encountered an issue with the config method defined in the clickhouse.rake file, which seems to be conflicting with the config method in the ActiveAdmin::Views::Pages::Show class.
In the ActiveAdmin::Views::Pages::Show class, the config method tries to get a page presenter using active_admin_config.get_page_presenter(:show). If this returns nil, it calls super, which should invoke the config method in the parent class.
However, it appears that the config method in clickhouse.rake is being called instead. This results in an error, as the config method in clickhouse.rake is not compatible with the expectations of the config method in ActiveAdmin::Views::Pages::Show.
In my project I use
clickhouse-activerecord
together withActiveAdmin 3.2.0
. I've encountered an issue with theconfig
method defined in theclickhouse.rake
file, which seems to be conflicting with theconfig
method in theActiveAdmin::Views::Pages::Show
class.In the
ActiveAdmin::Views::Pages::Show
class, theconfig
method tries to get a page presenter usingactive_admin_config.get_page_presenter(:show)
. If this returnsnil
, it callssuper
, which should invoke theconfig
method in the parent class.However, it appears that the
config
method inclickhouse.rake
is being called instead. This results in an error, as theconfig
method inclickhouse.rake
is not compatible with the expectations of theconfig
method inActiveAdmin::Views::Pages::Show
.Looks like causing change has been introduced here 535ca30#diff-258ec640a5a16784999ad47ad0fbe3819f003c7d8975589fb493c84b812bb1e0R89.
Below is an example illustrating the described issue:
This could potentially impact any other pieces of code. As a proposed solution, I suggest the following change in clickhouse.rake:
And then referring to the config method like this:
Thanks for your time.
The text was updated successfully, but these errors were encountered: