Sha256: 082aea84d5cbd4029b37c1f745b18e8f9b0462323f49959ceaf6188d8705152e

Contents?: true

Size: 299 Bytes

Versions: 16

Compression:

Stored size: 299 Bytes

Contents

module Arbre
  module Rails
    module Rendering

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

    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/arbre-1.4.0/lib/arbre/rails/rendering.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/arbre-1.4.0/lib/arbre/rails/rendering.rb
arbre-1.4.0 lib/arbre/rails/rendering.rb
arbre-1.3.0 lib/arbre/rails/rendering.rb
arbre-1.2.1 lib/arbre/rails/rendering.rb
arbre-1.2.0 lib/arbre/rails/rendering.rb
arbre-1.2.0.rc1 lib/arbre/rails/rendering.rb
arbre-1.1.1 lib/arbre/rails/rendering.rb
arbre-1.0.3 lib/arbre/rails/rendering.rb
arbre-1.0.2 lib/arbre/rails/rendering.rb
arbre-1.0.1 lib/arbre/rails/rendering.rb
arbre-1.0.0 lib/arbre/rails/rendering.rb
arbre-1.0.0.rc4 lib/arbre/rails/rendering.rb
arbre-1.0.0.rc3 lib/arbre/rails/rendering.rb
arbre-1.0.0.rc2 lib/arbre/rails/rendering.rb
arbre-1.0.0.rc1 lib/arbre/rails/rendering.rb