Permalink
Browse files

Merge pull request #89 from crafters/master

Added suport to mongoid 4.0.0
  • Loading branch information...
2 parents 71a9cdc + 401fe94 commit a3155244b4b27eb3922992109f28d3934fb61b8d @alup alup committed Mar 19, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/money-rails/hooks.rb
  2. 0 lib/money-rails/mongoid/{three.rb → money.rb}
View
6 lib/money-rails/hooks.rb
@@ -18,10 +18,8 @@ def self.init
if defined? ::Mongoid
if ::Mongoid::VERSION =~ /^2(.*)/
require 'money-rails/mongoid/two' # Loading the file is enough
- end
-
- if ::Mongoid::VERSION =~ /^3(.*)/
- require 'money-rails/mongoid/three'
+ else
+ require 'money-rails/mongoid/money'
end
end
View
0 lib/money-rails/mongoid/three.rb → lib/money-rails/mongoid/money.rb
File renamed without changes.

0 comments on commit a315524

Please sign in to comment.