Commit 838f2a94
Changed files (2)
app
controllers
app/controllers/application_controller.rb
@@ -1,9 +1,14 @@
class ApplicationController < ActionController::Base
protect_from_forgery
+ before_filter :profile_application
private
def resolve(target)
target.new(current_user)
end
+
+ def profile_application
+ Rack::MiniProfiler.authorize_request unless ENV['PROFILE_APPLICATION'].blank?
+ end
end
Gemfile
@@ -42,6 +42,9 @@ group :test do
gem 'simplecov'
gem 'ffaker'
end
+group :staging do
+ gem 'rack-mini-profiler'
+end
group :production, :staging do
gem 'pg'
gem 'fog'