lib/trailblazer/rails/controller.rb in trailblazer-rails-1.0.0 vs lib/trailblazer/rails/controller.rb in trailblazer-rails-1.0.1

- old
+ new

@@ -30,27 +30,9 @@ # into the runtime options. def _run_options(options) options end - module Render - def render(cell=nil, options={}, *, &block) - return super unless cell.kind_of?(::Cell::ViewModel) - render_cell(cell, options) - end - - def render_cell(cell, options) - options = options.reverse_merge(layout: true) - - # render the cell. - content = cell.() - - render( { html: content }.merge(options) ) - end - end - - include Render - module Result def result @_result end end