Skip to content

Warn about use of sign_in user, bypass: true also warns: Passing the result of caller to ActiveSupport::Deprecation#warn is deprecated  #5739

Open
@JasonBarnabe

Description

Environment

  • Ruby 3.3.6
  • Rails 7.2.2.1
  • Devise 4.9.4

Current behavior

sign_in user, bypass: true

results in the warning

DEPRECATION WARNING: Passing the result of `caller` to ActiveSupport::Deprecation#warn is deprecated and will be removed in Rails 8.0.
Please pass the result of `caller_locations` instead.

Devise.deprecator.warn(<<-DEPRECATION.strip_heredoc, caller)

And presumably will fail in Rails 8 too.

Expected behavior

Not fail, not warn about the ActiveSupport thing, but still warn

[Devise] bypass option is deprecated and it will be removed in future version of Devise.
Please use bypass_sign_in method instead.
Example:

  bypass_sign_in(user)

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