Module: Phlexi::Form::Structure::ManagesFields

Included in:
Namespace, NamespaceCollection
Defined in:
lib/phlexi/form/structure/manages_fields.rb

Instance Method Summary collapse

Instance Method Details

#has_file_input!Object



7
8
9
10
11
12
13
# File 'lib/phlexi/form/structure/manages_fields.rb', line 7

def has_file_input!
  if parent
    parent.has_file_input!
  else
    @has_file_input = true
  end
end

#has_file_input?Boolean

Returns:

  • (Boolean)


15
16
17
18
19
20
21
# File 'lib/phlexi/form/structure/manages_fields.rb', line 15

def has_file_input?
  if parent
    parent.has_file_input?
  else
    @has_file_input || false
  end
end