dpn-admin / dpn-server

Implementation of the DPN RESTful API.
Other
3 stars 6 forks source link

map_date can be called before Time::DATE_FORMATS[:dpn] is defined #124

Closed malakai97 closed 7 years ago

malakai97 commented 7 years ago

This results in strange behavior when an adapter calls #to_public_hash.

malakai97 commented 7 years ago

The config/initializers/resque.rb is referencing the adapters, which causes them to be autoloaded. And since 'r' comes before 't', they're loaded before the constant is defined.