lib/mashery.rb in mashery_rails-0.6.3 vs lib/mashery.rb in mashery_rails-0.6.6
- old
+ new
@@ -18,11 +18,13 @@
require 'mashery/member'
require 'mashery/key'
require 'mashery/service'
-require 'mashery/rails'
-require 'mashery/generator'
+if defined?(Rails)
+ require 'mashery/rails'
+ require 'mashery/generator'
+end
module Mashery
@@config = nil
def self.config