lib/cell/slim.rb in cells-slim-0.0.6 vs lib/cell/slim.rb in cells-slim-0.1.1

- old
+ new

@@ -8,22 +8,21 @@ super ensure @output_buffer = old_output_buffer end - def template_options_for(options) + def template_options_for(_options) { template_class: ::Slim::Template, suffix: "slim", disable_escape: true, escape_code: false, use_html_safe: false, buffer: "@output_buffer" } end + end - if Object.const_defined?(:ActionView) - require "cell/slim/rails" - include Cell::Slim::Rails - end + class ViewModelSlim < ViewModel + include Cell::Slim end end