update memory profiler, oj and lru redux

This commit is contained in:
Sam Saffron
2015-06-05 01:39:38 +10:00
parent fb7baeb7a2
commit 9b489506d0
2 changed files with 8 additions and 5 deletions
+5 -2
View File
@@ -3,8 +3,11 @@ if Rails.configuration.respond_to?(:load_mini_profiler) && Rails.configuration.l
require 'rack-mini-profiler'
require 'flamegraph'
# TODO support Ruby 2.2 once bundler fixes itself
require 'memory_profiler' if RUBY_VERSION >= "2.1.0" && RUBY_VERSION < "2.2.0"
begin
require 'memory_profiler' if RUBY_VERSION >= "2.1.0"
rescue => e
STDERR.put "#{e} failed to require mini profiler"
end
# initialization is skipped so trigger it
Rack::MiniProfilerRails.initialize!(Rails.application)