lib/active_admin/LTE/form_builder.rb
# If this `input` call is inside a `inputs` block, add the content
# to the form buffer. Else, return it directly.
If this `input` call is inside a `inputs` block, add the content
to the form buffer. Else, return it directly.
If this ` input ` call is inside a ` inputs ` block add the content to the form buffer . Else return it directly .
def input(method, *args)
        hash_options = args.shift || {}
        hash_options.merge! label_class: 'col-sm-2', wrapper_class: 'col-sm-10'
        args.unshift( hash_options )
        content = with_new_form_buffer{ super(method, *args) }
        @use_form_buffer ? form_buffers.last << content : content
      end
def input ( method , * args ) hash_options = args . shift || { } hash_options . merge! label_class : 'col-sm-2' , wrapper_class : 'col-sm-10' args . unshift ( hash_options ) content = with_new_form_buffer { super ( method , * args ) } @use_form_buffer ? form_buffers . last << content : content end
If this `input` call is inside a `inputs` block, add the content
to the form buffer.
If this ` input ` call is inside a ` inputs ` block add the content to the form buffer .
method
<not_specific>
args
<not_specific>