Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable mini-profiler loading #105

Closed
Vanuan opened this issue Oct 28, 2014 · 4 comments
Closed

Disable mini-profiler loading #105

Vanuan opened this issue Oct 28, 2014 · 4 comments

Comments

@Vanuan
Copy link

Vanuan commented Oct 28, 2014

Hey there,

What I'm trying to do is to disable loading of mini-profiler without touching Gemfile.
Even with "pp=disable" mini-profiler is still being loaded (at least to be able to enable it back).
Is there a setting to disable mini-profiler loading from the start without removing it from Gemfile?

@IslamAzab
Copy link

@Vanuan
I tried making a before_filter and in it I can disable/enabl profiling. Source link

I would also try this pp=skip link

@kbrock
Copy link
Contributor

kbrock commented Nov 30, 2015

Hi @Vanuan
Does that stack overflow suggesting work for you?

@kbrock
Copy link
Contributor

kbrock commented Feb 20, 2016

Also, you may want to add a :require => false in the Gemfile. you can write an initializer that loads just in the cases you desire.

@Vanuan
Copy link
Author

Vanuan commented Feb 20, 2016

Ok, will try

@Vanuan Vanuan closed this as completed Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants