Everything worked fine. The code in that place did not touch for several months.
Swears specifically on this block of code:
batch_action :publish do |selections| News.find(selections).each do |news| News.find(news).toggle!(:published) end redirect_to admin_news_index_path end If you leave only these two lines:
batch_action :publish do |selections| # ... end That will not change anything - the error persists.
What can be the reason, if I don’t touch all the files related to the ActiveAdmin gem?
Touched only this: bundle update and install and worked with ActionCable.
Moreover, in my batch_action almost all sections have batch_action . And everything works fine there.