FIX: Only enable the controller when the plugin is enabled

This commit is contained in:
Robin Ward 2017-09-08 10:45:14 -04:00
parent ac00f8b984
commit 7eb79ea31d
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ after_initialize do
require_dependency "application_controller"
class Presence::PresencesController < ::ApplicationController
requires_plugin PLUGIN_NAME
before_filter :ensure_logged_in
def publish