Module: Arbo::Rails::Rendering

Defined in:
lib/arbo/rails/rendering.rb

Instance Method Summary collapse

Instance Method Details

#render(*args) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/arbo/rails/rendering.rb', line 5

def render(*args)
  rendered = helpers.render(*args)
  case rendered
  when Arbo::Context
    current_arbo_element.add_child rendered
  else
    text_node rendered
  end
end