Module Not Loaded by script/runner

Hello ~

I have a Model Action that I wish to call from script/runner. This
Model accesses another action in a module in the lib directory. If I
fire up script/console and execute Model.action it works perfectly,
but when I run the command via script/runner it cannot find the action
I want to call in my module.

If I run: script/runner “puts $:” The lib directory is shown, so the
module should be loaded. I have tried many different explicit
approaches, but cannot get the action in the module to be called from
the model invoked via script/runner.

Thx in advance for any ideas!

~ Ben

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs