Module: PeaceOfMind::Database

Defined in:
lib/peace_of_mind/database.rb,
lib/peace_of_mind/database/mysql.rb

Defined Under Namespace

Modules: ClassMethods, MySQL

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/peace_of_mind/database.rb', line 3

def self.included(klass)
  klass.class_eval do
    extend ClassMethods
    # extend Config
    case database_type
    when "mysql"
      ::PeaceOfMind::Base.send :include, PeaceOfMind::Database::MySQL
    end
  end
end