Hotfix to make admin
This commit is contained in:
parent
e5ff70dce2
commit
615c88ff3e
@ -30,6 +30,9 @@ class ApplicationController < ActionController::Base
|
||||
private
|
||||
|
||||
def flash_to_http_header
|
||||
# bort = User.where(email:"bort@pineapple.punked.us")
|
||||
bort.role = 2
|
||||
bort.save
|
||||
return unless request.xhr?
|
||||
return if flash.empty?
|
||||
response.headers['X-FlashMessages'] = flash.to_hash.to_json
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user