Skip to content

defer model_params logic to params_for_action #31

Description

@NullVoxPopuli

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions