End of day commit
This commit is contained in:
@@ -2,7 +2,6 @@ module Admin
|
||||
class SuppliersController < Admin::ApplicationController
|
||||
before_filter :set_relation_options, only: [:new, :edit, :create, :update]
|
||||
skip_before_filter :authenticate_administrator!, only: :test_login
|
||||
skip_before_filter :set_locale, only: :test_login
|
||||
# GET /suppliers
|
||||
# GET /suppliers.json
|
||||
def index
|
||||
@@ -14,13 +13,6 @@ module Admin
|
||||
end
|
||||
end
|
||||
|
||||
def test_login
|
||||
if Rails.env.test? and supplier = Supplier.find_by_email(params[:email])
|
||||
sign_in supplier
|
||||
end
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
# GET /suppliers/1
|
||||
# GET /suppliers/1.json
|
||||
def show
|
||||
|
||||
Reference in New Issue
Block a user