lib/active_scaffold/helpers/form_column_helpers.rb
# This method decides which input to use for the given column.
# It does not do any rendering. It only decides which method is responsible for rendering.
This method decides which input to use for the given column.
It does not do any rendering. It only decides which method is responsible for rendering.
This method decides which input to use for the given column . It does not do any rendering . It only decides which method is responsible for rendering .
def current_form_columns(record, scope, subform_controller = nil)
        if scope
          subform_controller.active_scaffold_config.subform.columns.visible_columns_names
        elsif %i[new create edit update render_field].include? action_name.to_sym
          return if action_name == 'render_field' && request.get?
          active_scaffold_config.send(record.new_record? ? :create : :update).columns.visible_columns_names
        end
      end
def current_form_columns ( record , scope , subform_controller = nil ) if scope subform_controller . active_scaffold_config . subform . columns . visible_columns_names elsif %i[ new create edit update render_field ] . include? action_name . to_sym return if action_name == 'render_field' && request . get? active_scaffold_config . send ( record . new_record? ? :create : :update ) . columns . visible_columns_names end end
This method decides which input to use for the given column.
This method decides which input to use for the given column .
# disable update_columns for inplace_edit (GET render_field)
record
<not_specific>
scope
<not_specific>
subform_controller
<not_specific>