lib/react/server_rendering.rb in react-rails-2.2.1 vs lib/react/server_rendering.rb in react-rails-2.3.0
- old
+ new
@@ -11,10 +11,10 @@
# Discard the old ConnectionPool & create a new one.
# This will clear all state such as loaded code, JS VM state, or options.
# @return [void]
def self.reset_pool
- options = {size: pool_size, timeout: pool_timeout}
+ options = { size: pool_size, timeout: pool_timeout }
@@pool = ConnectionPool.new(options) { self.renderer.new(self.renderer_options) }
end
# Check a renderer out of the pool and use it to render the component.
# @param component_name [String] Component identifier, looked up by UJS