Class: DBConfig::Current

Inherits:
ActiveSupport::CurrentAttributes
  • Object
show all
Defined in:
lib/db_config/current.rb

Instance Method Summary collapse

Instance Method Details

#load_eager_configs!Object



5
6
7
# File 'lib/db_config/current.rb', line 5

def load_eager_configs!
  self.cached_records = DBConfig::Record.where(eager_load: true).index_by(&:key)
end