twitter-archive / clockworkraven

Human-Powered Data Analysis with Mechanical Turk
http://twitter.github.com/clockworkraven/
Apache License 2.0
300 stars 58 forks source link

Subdirectory mounting #74

Open bleonard opened 11 years ago

bleonard commented 11 years ago

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.

CLAassistant commented 4 years ago

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.