From 608aabb8c01beaddad917dee06ef78747b91300e Mon Sep 17 00:00:00 2001 From: Saurabh Bhatia Date: Mon, 17 Feb 2014 18:03:09 +0800 Subject: [PATCH] Before Filters and redirect path for central server before filter --- app/controllers/admin/module_store_controller.rb | 2 +- app/controllers/admin/template_store_controller.rb | 2 +- app/controllers/application_controller.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/admin/module_store_controller.rb b/app/controllers/admin/module_store_controller.rb index ced1adf..38a1354 100644 --- a/app/controllers/admin/module_store_controller.rb +++ b/app/controllers/admin/module_store_controller.rb @@ -1,5 +1,5 @@ class Admin::ModuleStoreController < OrbitBackendController - before_filter :check_central_server_connection, :only => [:get_extensions] + before_filter :check_central_server_connection def index @extensions = get_extensions diff --git a/app/controllers/admin/template_store_controller.rb b/app/controllers/admin/template_store_controller.rb index 299b96c..7e07067 100644 --- a/app/controllers/admin/template_store_controller.rb +++ b/app/controllers/admin/template_store_controller.rb @@ -3,7 +3,7 @@ require 'uri' require 'fileutils' require 'zip/zip' class Admin::TemplateStoreController < OrbitBackendController - before_filter :check_central_server_connection, :only => [:get_templates] + before_filter :check_central_server_connection before_filter :set_store def index diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 98618ef..4f4549f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -483,7 +483,7 @@ class ApplicationController < ActionController::Base if @site.site_token? flash[:notice]="Connected to the Store" else - redirect_to admin_register_site_index_path + redirect_to admin_sites_register_site_path flash[:notice]="To Access the Store Please Connect It" end end