it should be assumed that the params_for_action ARE the model_params?
model_params = (params_for_action[model_param_name] || params_for_action)
the issue here is when model_param_name is the same as an attribute on the model.
For example:
class Note
- note
- author
- etc
Alternatively, a check could be added to ensure the value of params_for_action[model_param_name] is a hash