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 #72

Closed bleonard closed 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.

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.

bleonard commented 11 years ago

going to do this in the 0.2.0 branch.