Module: AMEE::Rails

Defined in:
lib/amee/rails.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Connection

Class Method Summary collapse

Class Method Details

.connection(options = {}) ⇒ Object



7
8
9
# File 'lib/amee/rails.rb', line 7

def self.connection(options = {})
  Connection.global(options)
end

.included(base) ⇒ Object



53
54
55
56
# File 'lib/amee/rails.rb', line 53

def self.included(base)
  base.extend ClassMethods
  AMEE::Logger.to(::Rails.logger) if defined? ::Rails
end