|
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.
active_fedora/lib/active_fedora.rb
Line 286 in 511ee83
we autoload the railtie, injecting middleware into the
ActionDispatchstack. 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
Railtiefrom an application without removing the entire gem.