lib/scaffolding_extensions/model.rb
# the value of the field if not an association, or the scaffold_name of the associated object
the value of the field if not an association, or the scaffold_name of the associated object
the value of the field if not an association or the scaffold_name of the associated object
def scaffold_value(field)
    if self.class.scaffold_association(field)
      obj = send(field) 
      obj.scaffold_name if obj
    else
      send(field)
    end
  end
def scaffold_value ( field ) if self . class . scaffold_association ( field ) obj = send ( field ) obj . scaffold_name if obj else send ( field ) end end
the value of the field if not an association, or the scaffold_name of the associated object
the value of the field if not an association or the scaffold_name of the associated object
field
<not_specific>