lib/reputation.rb in reputation-0.0.2 vs lib/reputation.rb in reputation-0.0.3
- old
+ new
@@ -1,3 +1,4 @@
+require 'reputation/rails_version'
require 'reputation/user'
require 'reputation/functions'
-require 'reputation/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3
+require 'reputation/engine' if Reputation::RailsVersion.rails_3?
\ No newline at end of file