Module: UseDb::Configurations
- Defined in:
- lib/use_db/configurations.rb
Overview
include the other (potential) database.yml files
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/use_db/configurations.rb', line 6 def self.included(base) unless base.respond_to?(:configurations_with_other_dbs) base.extend(ClassMethods) base.class_eval do class << self alias_method_chain :configurations, :other_dbs end end end end |