samvera / active_fedora

A Rails interface to the Fedora repository, akin to ActiveModel
Other
54 stars 63 forks source link

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

Open no-reply opened 3 years ago

no-reply commented 3 years ago

https://github.com/samvera/active_fedora/blob/511ee837cd9a461021e53d5e20f362b634de39a8/lib/active_fedora.rb#L286

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.