lib/react/rails/controller_renderer.rb in react-rails-2.4.4.pre vs lib/react/rails/controller_renderer.rb in react-rails-2.4.4
- old
+ new
@@ -26,10 +26,10 @@
end
# @return [String] HTML for `component_name` with `options[:props]`
def call(component_name, options, &block)
props = options.fetch(:props, {})
- options = default_options.merge(options.slice(:data, :aria, :tag, :class, :id, :prerender))
+ options = default_options.merge(options.slice(:data, :aria, :tag, :class, :id, :prerender, :camelize_props))
react_component(component_name, props, options, &block)
end
private