Class: Babik::Database
- Inherits:
-
Object
- Object
- Babik::Database
- Defined in:
- lib/babik/database.rb
Overview
Database configuration
Class Method Summary collapse
-
.config ⇒ Hash{adapter:}
Return database configuration.
- .escape(string) ⇒ Object
Class Method Details
.config ⇒ Hash{adapter:}
Return database configuration
8 9 10 |
# File 'lib/babik/database.rb', line 8 def self.config ActiveRecord::Base.connection_config end |
.escape(string) ⇒ Object
12 13 14 |
# File 'lib/babik/database.rb', line 12 def self.escape(string) ActiveRecord::Base.connection.quote(string) end |