Require gem only for specific controller

Is there a way to require a gem only when specific controller is
accessed. I have one plugng that doesn’t like co-existing with a
gem(active scaffold and will_paginate).
I have two controllers that use will_paginate, but no active scaffold
and I thought of requiring that gem only for those two.

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