Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only load_generators if we Rails is available

0.2.6 broke HEAD on Draper since it does not include Rails as a
dependency
  • Loading branch information...
commit a01d27762e58b8c1c42b728505c8b81b697d7562 1 parent fac439f
@leshill leshill authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/ammeter/init.rb
View
4 lib/ammeter/init.rb
@@ -1,4 +1,6 @@
require 'ammeter/rspec/generator/example.rb'
require 'ammeter/rspec/generator/matchers.rb'
-Rails.application.load_generators
+if Rails.respond_to?(:application) && Rails.application.respond_to?(:load_generators)
+ Rails.application.load_generators
+end
Please sign in to comment.
Something went wrong with that request. Please try again.