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

Rack Applications not supported? #87

Closed
raviy06 opened this issue Sep 12, 2018 · 3 comments
Closed

Rack Applications not supported? #87

raviy06 opened this issue Sep 12, 2018 · 3 comments

Comments

@raviy06
Copy link

raviy06 commented Sep 12, 2018

How can we make Rack applications plus ActiveRecord work with nulldb?

@mnoack
Copy link
Member

mnoack commented Oct 17, 2018

This is a "passively maintained" gem.

So whilst I won't actively maintain and fix things, I'm more than happy to ensure Pull Requests are merged in and those who do want to contribute (even becoming a maintainer) can do so.

So unfortunately you'll need to review the code and work this out and submit a Pull Request or others might be able to assist you.

@notEthan
Copy link

I got this working with my sinatra app with my config/database.yml set with adapter: nulldb and a configuration looking like:

require 'activerecord-nulldb-adapter'
NullDB.configure do |ndb|
  def ndb.project_root
    MyApp.root
  end
end

depends on your app how you make note of its root, but you can probably just return '.' for project_root though.

@cabello cabello pinned this issue Oct 13, 2020
@cabello cabello closed this as completed Oct 28, 2021
@cabello
Copy link

cabello commented Oct 28, 2021

Leaving this as pinned but closing for now.

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

No branches or pull requests

4 participants