Class: Departure::RailsAdapter
- Inherits:
-
Object
- Object
- Departure::RailsAdapter
show all
- Extended by:
- Forwardable
- Defined in:
- lib/departure/rails_adapter.rb
Defined Under Namespace
Classes: BaseAdapter, V7_2_Adapter
Class Method Summary
collapse
Class Method Details
.current_version ⇒ Object
8
9
10
|
# File 'lib/departure/rails_adapter.rb', line 8
def current_version
ActiveRecord::VERSION
end
|
.for(ar_version) ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/departure/rails_adapter.rb', line 16
def for(ar_version)
if ar_version::MAJOR >= 7 && ar_version::MINOR >= 2
V7_2_Adapter
else
BaseAdapter
end
end
|
.for_current ⇒ Object
12
13
14
|
# File 'lib/departure/rails_adapter.rb', line 12
def for_current
self.for(current_version)
end
|