lib/js_render/configuration.rb in js_render-0.3.0 vs lib/js_render/configuration.rb in js_render-0.4.0
- old
+ new
@@ -20,18 +20,20 @@
:base_path,
:component_suffix,
:server_render_function,
:client_render_function,
:use_asset_pipeline,
- :asset_finder_class
+ :asset_finder_class,
+ :should_server_render
def initialize
@base_path = 'app/assets/javascripts'
@component_paths = ['/**/*']
@component_suffix = '.js'
@server_render_function = 'window.render*Server'
@client_render_function = 'window.render*Client'
@use_asset_pipeline = false
@asset_finder_class = nil
+ @should_server_render = true
end
end
end