Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #33 from jlecour/rails4

Plugin init compatible with Rails 4
  • Loading branch information...
commit 7d6f456a7e40291e0a3aefd40dc2df8e46c08d21 2 parents 7dddc82 + 1ae3c4f
Jason R. Clark jasonrclark authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rpm_contrib.rb
2  lib/rpm_contrib.rb
View
@@ -14,7 +14,7 @@ module RPMContrib; end
if defined? Rails
# Rails 3.x+
- if Rails.respond_to?(:version) && Rails.version =~ /^3/
+ if Rails.respond_to?(:version) && Rails.version =~ /^(3|4)/
module NewRelic
class Railtie < Rails::Railtie
initializer("rpm_contrib.start_plugin"){ NewRelic::Control.instance.init_plugin }
Please sign in to comment.
Something went wrong with that request. Please try again.