You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the given props are not properly camelized when rendered to the React component. This is because React.camelize_props does not recognize ActionController::Parameters as a valid hash and returns it as-is.
Expected behavior
React.camelize_props should camelize instances of ActionController::Parameters.
Actual behavior
React.camelize_props does not camelize instances of ActionController::Parameters.
I was going to submit a PR, but I noticed that the gem spec only requires Rails 3.2, so I wasn't sure what the best approach might be for testing with a class that didn't appear until Rails 4.
The text was updated successfully, but these errors were encountered:
Adds support for React.camelize_props to camelize an instance of
ActionController::Parameters hash, so that permitted, strong parameters
in a Rails controller can be passed to a React component.
Resolvesreactjs#931
Steps to reproduce
Note that the given props are not properly camelized when rendered to the React component. This is because
React.camelize_props
does not recognizeActionController::Parameters
as a valid hash and returns it as-is.Expected behavior
React.camelize_props
should camelize instances ofActionController::Parameters
.Actual behavior
React.camelize_props
does not camelize instances ofActionController::Parameters
.I was going to submit a PR, but I noticed that the gem spec only requires Rails 3.2, so I wasn't sure what the best approach might be for testing with a class that didn't appear until Rails 4.
The text was updated successfully, but these errors were encountered: