lib/mongoid/compatibility/version.rb in mongoid-compatibility-0.5.1 vs lib/mongoid/compatibility/version.rb in mongoid-compatibility-0.6.0
- old
+ new
@@ -1,9 +1,9 @@
module Mongoid
module Compatibility
module Version
module ClassMethods
- (2..7).each do |v|
+ (2..8).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