lib/active_scaffold/helpers/form_column_helpers.rb
##
## Macro-level rendering decisions for columns
##
Macro-level rendering decisions for columns
Macro - level rendering decisions for columns
def column_renders_as(column)
        if column.respond_to? :each
          :subsection
        elsif column.active_record_class.locking_column.to_s == column.name.to_s || column.form_ui == :hidden
          :hidden
        elsif column.association.nil? || column.form_ui || !active_scaffold_config_for(column.association.klass).actions.include?(:subform) || override_form_field?(column)
          :field
        else
          :subform
        end
      end
def column_renders_as ( column ) if column . respond_to? :each :subsection elsif column . active_record_class . locking_column . to_s == column . name . to_s || column . form_ui == :hidden :hidden elsif column . association . nil? || column . form_ui || ! active_scaffold_config_for ( column . association . klass ) . actions . include? ( :subform ) || override_form_field? ( column ) :field else :subform end end
Macro-level rendering decisions for columns
Macro - level rendering decisions for columns
column
<not_specific>