lib/mongoid/compatibility/version.rb in mongoid-compatibility-0.3.1 vs lib/mongoid/compatibility/version.rb in mongoid-compatibility-0.4.0
- old
+ new
@@ -1,9 +1,9 @@
module Mongoid
module Compatibility
module Version
module ClassMethods
- (2..5).each do |v|
+ (2..6).each do |v|
const_set "V#{v}", Mongoid::VERSION =~ Regexp.new("^#{v}\.")
define_method "mongoid#{v}?" do
!!Mongoid::Compatibility::Version::ClassMethods.const_get("V#{v}")
end