module Pay::Adapter
Public Class Methods
current_adapter()
click to toggle source
# 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
json_column_type()
click to toggle source
# File lib/pay/adapter.rb, line 13 def self.json_column_type case current_adapter when "postgresql" :jsonb else :json end end