lib/active_admin/arbre/context.rb in activeadmin-0.2.2 vs lib/active_admin/arbre/context.rb in activeadmin-0.3.0

- old
+ new

@@ -1,8 +1,16 @@ +require 'active_admin/arbre/html/element' + module Arbre class Context < Arbre::HTML::Element def indent_level # A context does not increment the indent_level super - 1 end + + def length + to_html.length + end + alias :bytesize :length + end end