Class: MultiAR::Model

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/multi_ar/model.rb

Overview

Base model for different model groups to include.

This is not supposed to be included by models itself, instead you should have common main parent model that extends this model, and the actual model should extend that model.

Class Method Summary collapse

Class Method Details

.database_config=(config) ⇒ Object

Can be used to set custom database config.



19
20
21
# File 'lib/multi_ar/model.rb', line 19

def self.database_config= config
  @db_config = config
end