End of day commit

This commit is contained in:
2015-02-18 22:36:47 +01:00
parent 82670f271b
commit c1858455e9
68 changed files with 633 additions and 145 deletions
@@ -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