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

Don't require Railtie just because the Gem is present #1444

Open
no-reply opened this issue Apr 8, 2021 · 0 comments
Open

Don't require Railtie just because the Gem is present #1444

no-reply opened this issue Apr 8, 2021 · 0 comments

Comments

@no-reply
Copy link
Contributor

no-reply commented Apr 8, 2021

require 'active_fedora/railtie' if defined?(Rails)

we autoload the railtie, injecting middleware into the ActionDispatch stack. this should really only happen if the users application wants it.

it seems like the more rails-y approach would be to generate this into application.rb?

whatever the case, it should be possible to remove the Railtie from an application without removing the entire gem.

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

No branches or pull requests

1 participant