Skip to content
Browse files

Make gem work with and without rails

  • Loading branch information...
1 parent 443cfe1 commit a283ca08596fb1fa806c3f91cfe28ae40685becf @shageman committed May 6, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 gems/annoyance/lib/annoyance.rb
View
7 gems/annoyance/lib/annoyance.rb
@@ -1,4 +1,9 @@
-require 'annoyance/engine' if defined?(Rails)
+if defined?(Rails)
+ require 'annoyance/engine'
+else
+ require_relative '../app/models/annoyance/levels'
+ require_relative '../app/models/annoyance/meter'
+end
module Annoyance
end

0 comments on commit a283ca0

Please sign in to comment.
Something went wrong with that request. Please try again.