Yet another “this was just working, what the hell happened?”
My custom Radiant extension is dependent on a gem that I have in
RAILS_ROOT/vendor/gem. I can see that my extension is loading before
the gem does and so that dependency is failing.
I am not sure how my load order got screwed up.
Do I just need to require my gem as usual in config/environment.rb or is
there some Radiant specific way to make the gems be loaded first?
Do I just need to require my gem as usual in config/environment.rb or is
there some Radiant specific way to make the gems be loaded first?
Thanks,
Wes
Wes,
Radiant bundles rails, so your version of rails should be irrelevant.
What would be helpful is some sample code.
Have you tried requiring the gem from within your extension?
RAILS_ROOT/vendor/gem. I can see that my extension is loading before the
Wes,
Radiant bundles rails, so your version of rails should be irrelevant.
What would be helpful is some sample code.
Have you tried requiring the gem from within your extension?
This was a problem that I had with Devise and assumptions that it makes
when defining helper methods for inclusion into controllers.
I’ll provide more detail later.
W
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.