Hey all,
I’m proposing/working on a change to ActionController:Params wrapper to fixup what I think is kind of limited behavior. Looking for feedback (good idea/bad idea) and recommendations about how to go about it.
I described use case and and problem in detail here. https://github.com/rails/rails/issues/16222
The gist:
the :include option doesn’t work the same in this situation as it does in say ActiveRecord::to_json. I want to use the :include option to specify additional parameters to wrap, not exclusive parameters to wrap. For exclusive parameters there should be an option called :only.