Sha256: 51ce17a158705f689d585bfaa7a5b0877f6172518579a64e8f0b069a3084287f

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

module Arbo
  module Rails
    module Rendering

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

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arbo-1.3.1 lib/arbo/rails/rendering.rb
arbo-1.3.0 lib/arbo/rails/rendering.rb
arbo-1.2.0 lib/arbo/rails/rendering.rb