Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devise + sequel #5606

Closed
dawidof opened this issue Jul 6, 2023 · 2 comments
Closed

Devise + sequel #5606

dawidof opened this issue Jul 6, 2023 · 2 comments

Comments

@dawidof
Copy link

dawidof commented Jul 6, 2023

Environment

  • Ruby [version] 3.2.2
  • Rails [version] 7.0.6
  • Devise [version] 4.9.2

Current behavior

rails generate devise user

<internal:/Users/dmytro/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- devise/orm/sequel (LoadError)
	from <internal:/Users/dmytro/.rvm/rubies/ruby-3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from /Users/dmytro/.rvm/gems/ruby-3.2.2/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
	from /Users/dmytro/.rvm/gems/ruby-3.2.2/gems/zeitwerk-2.6.8/lib/zeitwerk/kernel.rb:38:in `require'

Expected behavior

Any plans to connect devise with sequel??

@janko
Copy link

janko commented Aug 3, 2023

Your best chance is probably sequel-devise gem. However, that's just a hack, the gem just makes Sequel models quack enough like Active Record objects for Devise to work. Devise tried to be ORM-agnostic by using the orm_adapter gem, but in reality it still calls Active Record methods directly, bypassing the abstraction.

If you want an authentication framework built on top of Sequel, I highly recommend Rodauth. It has a Rails integration, which includes generators and other niceties.

@carlosantoniodasilva
Copy link
Member

I don't know much about Sequel tbh, but would consider a patch to support it if the changes aren't much. For now, I've taken notes as a potential feature to support in the future.

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

No branches or pull requests

3 participants