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 column_show_add_new(column, associated, record)
        assoc = column.association
        value = assoc.singular?
        value ||= assoc.collection? && !assoc.readonly? && (!assoc.through? || !assoc.through_reflection.collection?)
        value &&= false unless assoc.klass.authorized_for?(:crud_type => :create)
        value
      end
def column_show_add_new ( column , associated , record ) assoc = column . association value = assoc . singular? value ||= assoc . collection? && ! assoc . readonly? && ( ! assoc . through? || ! assoc . through_reflection . collection? ) value &&= false unless assoc . klass . authorized_for? ( :crud_type => :create ) value end
This method decides which input to use for the given column.
This method decides which input to use for the given column .
column
<not_specific>
associated
<not_specific>
record
<not_specific>