Module: Alchemy::ConfigMissing

Included in:
Alchemy, Alchemy, BaseRecord, BaseRecord
Defined in:
lib/alchemy/config_missing.rb

Instance Method Summary collapse

Instance Method Details

#const_missing(missing_const_name) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/alchemy/config_missing.rb', line 5

def const_missing(missing_const_name)
  if missing_const_name == :Config
    Alchemy::Deprecation.warn("Alchemy::Config is deprecated. Use Alchemy.config instead.")
    Alchemy.config
  else
    super
  end
end