Loading initializers depending on platform (ruby, jruby)

Hey,

Is there an automated way of loading initializers depending on whether you are currently using ruby or jruby? I have an internal gem that loads some jRuby tasks, but I fail to run them because other non-jruby initializers keep erroring out, understandably since they are not currently installed as jruby gems.

Assuming the following gemfile:

No ideas on this fellas?

No ideas on this fellas?

No idea what you're talking about...