Skip to content

Commit dd5cfb0

Browse files
committed
让所有用户都能看到 Rack::MiniProfiler 的结果!
1 parent 17b83f8 commit dd5cfb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ApplicationController < ActionController::Base
1414
devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(*User::ACCESSABLE_ATTRS) }
1515
end
1616

17-
if current_user && current_user.admin?
17+
if current_user
1818
Rack::MiniProfiler.authorize_request
1919
end
2020

config/deploy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
run "cd #{current_path}; RAILS_ENV=production bundle exec rake db:migrate"
4747
end
4848

49-
after 'deploy:finalize_update', 'deploy:symlink', :link_shared#, :migrate_db, :compile_assets
49+
after 'deploy:finalize_update', 'deploy:symlink', :link_shared, :migrate_db#, :compile_assets
5050
after 'deploy:restart', 'unicorn:restart'
5151
after 'deploy:start', 'unicorn:start'
5252
after 'deploy:stop', 'unicorn:stop'

0 commit comments

Comments
 (0)