Module: ActiveSupport::Dependencies
- Extended by:
- Dependencies
- Included in:
- Dependencies
- Defined in:
- lib/xteam_schedule/facilitation/lmc_patch.rb
Instance Method Summary collapse
-
#forgiving_load_missing_constant(from_mod, const_name) ⇒ Object
(also: #load_missing_constant)
def load_missing_constant(from_mod, const_name).
Instance Method Details
#forgiving_load_missing_constant(from_mod, const_name) ⇒ Object Also known as: load_missing_constant
def load_missing_constant(from_mod, const_name)
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/xteam_schedule/facilitation/lmc_patch.rb', line 8 def forgiving_load_missing_constant( from_mod, const_name ) begin old_load_missing_constant(from_mod, const_name) rescue ArgumentError => arg_err if arg_err. == "#{from_mod} is not missing constant #{const_name}!" return from_mod.const_get(const_name) else raise end end end |