Method: Pay::Adapter.current_adapter

Defined in:
lib/pay/adapter.rb

.current_adapterObject



5
6
7
8
9
10
11
# File 'lib/pay/adapter.rb', line 5

def self.current_adapter
  if ActiveRecord::Base.respond_to?(:connection_db_config)
    ActiveRecord::Base.connection_db_config.adapter
  else
    ActiveRecord::Base.connection_config[:adapter]
  end
end