Skip to content

Devise.add_mapping adds a dependency on Rails #4

Description

@Gurpartap

When I add Devise.add_mapping(:users, {}), it errors out with:

.bundle/ruby/2.2.0/gems/devise-3.5.1/lib/devise/failure_app.rb:13:in
`<class:FailureApp>': undefined method `routes' for nil:NilClass (NoMethodError)

Line 13 of devise's failure_app.rb is include Rails.application.routes.url_helpers.

Perhaps it's inadvertently adding a dependency to Rails here. Is there a way to avoid this?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions