work off today
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
module Admin
|
||||
class ApplicationController < ::ApplicationController
|
||||
before_action :setup_administrator!
|
||||
load_and_authorize_resource
|
||||
#load_and_authorize_resource
|
||||
layout 'cmtool/application'
|
||||
|
||||
private
|
||||
|
||||
def setup_administrator!
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
module Admin
|
||||
class EmployeesController < Admin::ApplicationController
|
||||
before_filter :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
skip_before_filter :setup_administrator!, only: :test_login
|
||||
skip_authorize_resource only: :test_login
|
||||
skip_before_filter :set_locale, only: :test_login
|
||||
before_action :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
skip_before_action :setup_administrator!, only: :test_login
|
||||
skip_before_action :set_locale, only: :test_login
|
||||
# GET /employees
|
||||
# GET /employees.json
|
||||
def index
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# encoding: UTF-8
|
||||
module Admin
|
||||
module Admin
|
||||
class ListsController < Admin::ApplicationController
|
||||
before_filter :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
before_action :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
# GET /lists
|
||||
# GET /lists.json
|
||||
def index
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# encoding: UTF-8
|
||||
module Admin
|
||||
module Admin
|
||||
class OrdersController < Admin::ApplicationController
|
||||
before_filter :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
before_action :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
# GET /orders
|
||||
# GET /orders.json
|
||||
def index
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# encoding: UTF-8
|
||||
module Admin
|
||||
class ProductCategoriesController < Admin::ApplicationController
|
||||
before_filter :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
before_action :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
# GET /product_categories
|
||||
# GET /product_categories.json
|
||||
def index
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# encoding: UTF-8
|
||||
module Admin
|
||||
class ProductsController < Admin::ApplicationController
|
||||
before_filter :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
before_action :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
# GET /products
|
||||
# GET /products.json
|
||||
def index
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# encoding: UTF-8
|
||||
module Admin
|
||||
class SectionsController < Admin::ApplicationController
|
||||
before_filter :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
before_action :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
# GET /sections
|
||||
# GET /sections.json
|
||||
def index
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module Admin
|
||||
class SuppliersController < Admin::ApplicationController
|
||||
before_filter :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
skip_before_filter :authenticate_administrator!, only: :test_login
|
||||
before_action :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
skip_before_action :setup_administrator!, only: :test_login
|
||||
# GET /suppliers
|
||||
# GET /suppliers.json
|
||||
def index
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# encoding: UTF-8
|
||||
module Admin
|
||||
module Admin
|
||||
class TablesController < Admin::ApplicationController
|
||||
before_filter :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
before_action :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
# GET /tables
|
||||
# GET /tables.json
|
||||
def index
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
module Admin
|
||||
class UsersController < Admin::ApplicationController
|
||||
skip_before_filter :setup_administrator!, only: :test_login
|
||||
skip_authorize_resource only: :test_login
|
||||
skip_before_filter :set_locale, only: :test_login
|
||||
skip_before_action :setup_administrator!, only: :test_login
|
||||
skip_before_action :set_locale, only: :test_login
|
||||
# GET /users
|
||||
# GET /users.json
|
||||
def index
|
||||
|
||||
Reference in New Issue
Block a user