Setup OAuth when rendering site#index from site#edit
authorTom Hughes <tom@compton.nu>
Thu, 31 Oct 2013 20:52:43 +0000 (20:52 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 31 Oct 2013 20:52:43 +0000 (20:52 +0000)
app/controllers/site_controller.rb

index 280f39f..cea37fb 100644 (file)
@@ -39,6 +39,7 @@ class SiteController < ApplicationController
     editor = preferred_editor
 
     if editor == "remote"
+      require_oauth
       render :action => :index
       return
     end