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


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

def closing_tag
  @closing_tag || ""
end

#opening_tagObject


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

def opening_tag
  @opening_tag || ""
end

#split_string_on(string, match) ⇒ Object


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

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


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

def to_s
  opening_tag + children.to_s + closing_tag
end