require newrelic_rpm if newrelic is configured
This commit is contained in:
parent
ff36b84df5
commit
bb19531195
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
# the COPYRIGHT file.
|
||||
|
||||
require File.join(Rails.root, 'lib', 'stream', 'public')
|
||||
require 'newrelic_rpm' if File.exists?(File.expand_path('../newrelic.yml', __FILE__))
|
||||
|
||||
class PublicsController < ApplicationController
|
||||
require File.join(Rails.root, '/lib/diaspora/parser')
|
||||
|
|
@ -10,7 +11,7 @@ class PublicsController < ApplicationController
|
|||
require File.join(Rails.root, '/lib/postzord/receiver/private')
|
||||
include Diaspora::Parser
|
||||
|
||||
newrelic_ignore
|
||||
newrelic_ignore if File.exists?(File.expand_path('../newrelic.yml', __FILE__))
|
||||
|
||||
skip_before_filter :set_header_data
|
||||
skip_before_filter :which_action_and_user
|
||||
|
|
|
|||
Loading…
Reference in a new issue