Module: Noticed::HasNotifications

Extended by:
ActiveSupport::Concern
Defined in:
lib/noticed/has_notifications.rb

Instance Method Summary collapse

Instance Method Details

#current_adapterObject



41
42
43
44
45
46
47
# File 'lib/noticed/has_notifications.rb', line 41

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