Skip to content

Commit 090feea

Browse files
committed
move AR4x constants to (top-level) ArJdbc
1 parent f2572f0 commit 090feea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/arjdbc/jdbc.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
module ArJdbc
44

5+
# @private
6+
AR40 = ::ActiveRecord::VERSION::MAJOR > 3
7+
# @private
8+
AR42 = ::ActiveRecord::VERSION::STRING >= '4.2'
9+
510
class << self
611

712
def warn(message, once = nil)

lib/arjdbc/mysql/adapter.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
module ArJdbc
77
module MySQL
88

9-
# @private
10-
AR40 = ::ActiveRecord::VERSION::MAJOR > 3
11-
# @private
12-
AR42 = ::ActiveRecord::VERSION::STRING >= '4.2'
13-
149
require 'arjdbc/mysql/column'
1510
require 'arjdbc/mysql/bulk_change_table'
1611
require 'arjdbc/mysql/explain_support'

0 commit comments

Comments
 (0)