Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #89 from crafters/master

Added suport to mongoid 4.0.0
  • Loading branch information...
commit a3155244b4b27eb3922992109f28d3934fb61b8d 2 parents 71a9cdc + 401fe94
@alup alup authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.