Class: ActiveAdmin::Views::FormtasticProxy

Inherits:
Arbre::Rails::Forms::FormBuilderProxy
  • Object
show all
Defined in:
lib/active_admin/views/components/active_admin_form.rb

Instance Method Summary collapse

Instance Method Details

#closing_tagObject


14
15
16
# File 'lib/active_admin/views/components/active_admin_form.rb', line 14

def closing_tag
  @closing_tag || ""
end

#opening_tagObject


10
11
12
# File 'lib/active_admin/views/components/active_admin_form.rb', line 10

def opening_tag
  @opening_tag || ""
end

#split_string_on(string, match) ⇒ Object


4
5
6
7
8
# File 'lib/active_admin/views/components/active_admin_form.rb', line 4

def split_string_on(string, match)
  return "" unless string && match
  part_1 = string.split(Regexp.new("#{match}\\z")).first
  [part_1, match]
end

#to_sObject


18
19
20
# File 'lib/active_admin/views/components/active_admin_form.rb', line 18

def to_s
  opening_tag << children.to_s << closing_tag
end