From abceabc36f3ca136fecc8413dd1fb5cc22ffac3a Mon Sep 17 00:00:00 2001 From: Mohamed Wael Khobalatte Date: Fri, 2 Oct 2015 21:38:32 +0100 Subject: [PATCH] Do away with stats about rails and bundler initialization We have the code to kick them in in one run (through the console for instance) or write a spec that keeps them under some threshold, so there is no reason why everyone must see the numbers every day. --- config/application.rb | 8 ++------ config/environment.rb | 6 ++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/config/application.rb b/config/application.rb index 4131ee6e500..0908afdc6b1 100644 --- a/config/application.rb +++ b/config/application.rb @@ -46,9 +46,7 @@ module SimpleBenchmark end end -SimpleBenchmark.bench "require 'rails/all'" do - require 'rails/all' -end +require 'rails/all' if defined?(Bundler) # lib directory has to be added to the load path so that @@ -65,9 +63,7 @@ if defined?(Bundler) # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. - SimpleBenchmark.bench 'Bundler.require' do - Bundler.require(*Rails.groups(:opf_plugins)) - end + Bundler.require(*Rails.groups(:opf_plugins)) end require File.dirname(__FILE__) + '/../lib/open_project/configuration' diff --git a/config/environment.rb b/config/environment.rb index 3e092d620ca..dbf2248610c 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -30,7 +30,5 @@ # Load the Rails application. require File.expand_path('../application', __FILE__) -SimpleBenchmark.bench 'Application.initialize!' do - # Initialize the Rails application. - OpenProject::Application.initialize! -end +# Initialize the Rails application. +OpenProject::Application.initialize!