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
I encountered the same issue and resolved it by replacing the apartment gem with the ros-apartment gem. The updated Gemfile entry is as follows: gem 'ros-apartment', require: 'apartment'
refences: link
Steps to reproduce
Added gem 'apartment' to Gemfile [ok]
Run: bundle install [ok]
Run: bundle exec rails generate apartment:install [fail]
Expected behavior
Generate apartment initializer file
Actual behavior
Error ocorred:
/home/carlos/.rvm/gems/ruby-3.2.1/gems/actionpack-7.0.4.2/lib/action_dispatch/middleware/stack.rb:37:in "build": undefined method "new" for "Apartment::Reloader":String (NoMethodError)
Did you mean? next
System configuration
Database: postgresql
Apartment version: 0.24.3
Rails (or ActiveRecord) version: 7.0.4.2
Ruby version: 3.2.1p31
The text was updated successfully, but these errors were encountered: