Method: ActiveSupport::MessagePack::Extensions#load_class

Defined in:
activesupport/lib/active_support/message_pack/extensions.rb

#load_class(name) ⇒ Object



258
259
260
261
262
263
264
265
266
# File 'activesupport/lib/active_support/message_pack/extensions.rb', line 258

def load_class(name)
  Object.const_get(name)
rescue NameError => error
  if error.name.to_s == name
    raise MissingClassError, "Missing class: #{name}"
  else
    raise
  end
end