Skip to content

Error when trying to generate apartment initializer #682

@krlosgilson

Description

@krlosgilson

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)

    klass.new(app, *args, &block)
         ^^^^

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions