Skip to content

Conversation

@ttanimichi
Copy link
Member

This allows the use of camelize props in controller actions.

render component: 'Example', props: my_props, camelize_props: true

This allows the use of camelize props in controller actions.

```ruby
render component: 'Example', props: my_props, camelize_props: true
```
@BookOfGreg
Copy link
Member

Hi @ttanimichi
👍 thanks for the fix and for going through the time to update the tests!
Interesting that the controller_renderer and the component_mount handle their args differently. I'll keep that in mind for an eventual refactor there.

For my notes:
#409
https://github.com/reactjs/react-rails/blob/master/lib/react/rails/component_mount.rb
https://github.com/reactjs/react-rails/blob/master/lib/react/rails/controller_renderer.rb

@BookOfGreg BookOfGreg merged commit 2084b92 into reactjs:master Feb 7, 2018
@ttanimichi ttanimichi deleted the controller-camelize-props branch February 7, 2018 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants