Skip to content
This repository was archived by the owner on Sep 18, 2021. It is now read-only.

Comments

Subdirectory mounting#74

Open
bleonard wants to merge 2 commits intotwitter-archive:0.2.0-wipfrom
bleonard:bleonard-mounted-path2
Open

Subdirectory mounting#74
bleonard wants to merge 2 commits intotwitter-archive:0.2.0-wipfrom
bleonard:bleonard-mounted-path2

Conversation

@bleonard
Copy link

I'd like to use Clockwork Raven alongside other admin capabilities. This requires it not conflicting with those routes, so I added a the ability to mount the whole thing into a subdirectory.

def self.mounted_path
  "/turk"  # empty for root, "/dir_name" for mounted
end

Tests pass in both cases. At least the same as they were before.

I switched the tests over to use the routes helpers, which I'm not a huge fan of, but it beat adding this mounted notion all over the place.

By changing the application.rb, you can put everything in a subdirectory (instead of root)
Conflicts:

	config/application.rb
	config/routes.rb
@CLAassistant
Copy link

CLAassistant commented Nov 16, 2019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants