Skip to content

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

@no-reply

Description

@no-reply

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions