Skip to content

Instantly share code, notes, and snippets.

View fushang318's full-sized avatar
🏠
Working from home

fushang318 fushang318

🏠
Working from home
View GitHub Profile
class << Marshal
def load_with_rails_classloader(*args)
begin
load_without_rails_classloader(*args)
rescue ArgumentError, NameError => e
if e.message =~ %r(undefined class/module)
const = e.message.split(' ').last
const.constantize
retry
else