Sha256: 25add791bcb090bdcd89e775e59225f7c600ea533f79c9680fc683a86ac17303

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

module ActiveAdmin
  module ViewHelpers
    module ActiveAdminApplicationHelper

      def arbre_content_for( name, &block )
        if block_given?
          content_for name.to_sym do
            Arbre::Context.new do
              text_node yield
            end.content
          end
        end
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin_custom_layout-0.1.3 lib/activeadmin_custom_layout/helpers.rb
activeadmin_custom_layout-0.1.1 lib/activeadmin_custom_layout/helpers.rb
activeadmin_custom_layout-0.1.0 lib/activeadmin_custom_layout/helpers.rb