generators/airbrake/airbrake_generator.rb in airbrake-4.3.0 vs generators/airbrake/airbrake_generator.rb in airbrake-4.3.1

- old
+ new

@@ -74,10 +74,10 @@ system("grep HOPTOAD_API_KEY config/initializers/airbrake.rb") || system("grep HOPTOAD_API_KEY config/environment.rb") end def use_initializer? - Rails::VERSION::MAJOR > 1 + ::Rails::VERSION::MAJOR > 1 end def api_key_configured? File.exists?('config/initializers/airbrake.rb') || system("grep Airbrake config/environment.rb")