lib/react/rails/controller_renderer.rb in react-rails-2.7.1 vs lib/react/rails/controller_renderer.rb in react-rails-3.0.0.rc.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module React
module Rails
# A renderer class suitable for `ActionController::Renderers`.
# It is associated to `:component` in the Railtie.
#
@@ -18,10 +20,10 @@
include ActionView::Helpers::TagHelper
include ActionView::Helpers::TextHelper
attr_accessor :output_buffer
- def initialize(options={})
+ def initialize(options = {})
controller = options[:controller]
@__react_component_helper = controller.__react_component_helper
end
# @return [String] HTML for `component_name` with `options[:props]`