I’ve opened a class (from the OmniAuth Identity library) to alter the forms it produces. The library uses autoload, so in order for the patch to work I need to force the library to load, but what I’ve tried so far results in errors, this is my best guess so far:
OmniAuth::Strategies::Identity if autoload? OmniAuth::Strategies::Identity
uninitialized constant OmniAuth::Strategies::Identity (NameError)
Would anyone be able to tell me how this can be done? Any help or insight will be much appreciated.
Ruby v1.9.x
OmniAuth Identity v1.1.0
As the autoload is just a magic way to reduce the number of
requirestatements, you can use exactly that to enforce the loading of a certain file: