Decoupling of ActionPack

Hello!

Are the plans of splitting ActionPack for several gems (AbstractController, ActionView, etc)? Like https://github.com/rails/rails/pull/7356

I.e. I know gems that are needed AbstractController only… And they are forced to require the whole ActionPack…

Thanx.

We are splitting Action Pack and Action View, but no plans for the others gems.

Hi,

ActionView was extracted from ActionPack here: https://github.com/rails/rails/pull/11032. This work is part of Google Summer of Code 2013 and @strzalek is working on it. The further plan is to allow using ActionPack without ActionView - it makes sense to do that if you only need to render JSON for APIs (or simple templates which don’t need too much features). There is no plans to extract more things (like AbstractController) to separate gems, though, it would not make much difference.

Cheers!

Piotr

That’s great! Having that finally extracted should make it easy to replace. Thanks guys!

Thanks for reply!

Niks’ gem https://github.com/apotonick/cells is an example: it uses AbstractController but another rails’ things are optional.