Skip to content

Commit c7985b0

Browse files
committed
Set default compatibility level to current version
1 parent 82d5da4 commit c7985b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ice_cube.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def self.to_s_time_format=(format)
8383
# Retain backwards compatibility for schedules exported from older versions
8484
# This represents the version number, 11 = 0.11, 1.0 will be 100
8585
def self.compatibility
86-
@compatibility ||= 11
86+
@compatibility ||= IceCube::VERSION.scan(/\d+/)[0..1].join.to_i
8787
end
8888

8989
def self.compatibility=(version)

0 commit comments

Comments
 (0)