Skip to content

[BUG]: New User add for New Org page fails with error #5745

Open

Description

@burkemasles

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When attempting to Add New User as part of Add New Organization an error occurs:
uninitialized constant CustomDeviseMailer

Image

Expected Behavior

New Organization is created and new user is created attached to that Organization

Steps To Reproduce

  1. Go to /organizations page
  2. Click "Add New Organization" button
  3. Fill out valid Org details
  4. Fill in New User at bottom
  5. Submit

Environment

- OS:
- Node:
- npm:

Criteria for Completion

  • When creating a new user with New Organization form it should be able to create new Org with a user added to that Org

Anything else?

No response

Code of Conduct

  • I've read the Code of Conduct and understand my responsibilities as a member of the Ruby for Good community

Activity

  1. apostergiakis commented on Oct 31, 2026

    @apostergiakis

    Hi! I'd like to work on this one.

    I reproduced it locally on main. It's a regression from devise_invitable 2.0.13 (bumped in #5732): its :action_mailer load hook resolves Devise.mailer while CustomDeviseMailer is still being loaded, so the first invite in a process without eager loading fails. CI eager-loads, which is why the specs don't catch it.

    Upstream fixed it in 2.0.14 (scambra/devise_invitable#929), and that release contains only the fix.

    Two options:

    1. A small PR that patch-bumps devise_invitable to 2.0.14 (one lockfile line) plus a regression spec.
    2. Wait for Dependabot, which will probably propose 3.0.x (a major version).

    Happy to do option 1 if that works for you. Could you assign this to me?

  2. dorner commented on Nov 8, 2026

    @dorner
    Collaborator

    Sounds good!

  3. apostergiakis commented on Nov 9, 2026

    @apostergiakis

    Opened #5762: bumps devise_invitable to 2.0.14 plus a cold-boot regression spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions