lib/scaffolding_extensions/meta_model.rb
# Returns the human name for a given attribute.  Can be set via the instance variable
# @scaffold_column_names, a hash with the column name as a symbol key and the human name
# string as the value.
Returns the human name for a given attribute.  Can be set via the instance variable
Returns the human name for a given attribute . Can be set via the instance variable
def scaffold_column_name(column_name)
    @scaffold_column_names ||= {}
    @scaffold_column_names[column_name] ||= if n = SCAFFOLD_OPTIONS[:column_names][column_name]
      n
    elsif scaffold_association(column_name)
      scaffold_associated_human_name(column_name)
    else
      column_name.to_s.humanize
    end 
  end
def scaffold_column_name ( column_name ) @scaffold_column_names ||= { } @scaffold_column_names [ column_name ] ||= if n = SCAFFOLD_OPTIONS [ :column_names ] [ column_name ] n elsif scaffold_association ( column_name ) scaffold_associated_human_name ( column_name ) else column_name . to_s . humanize end end
Returns the human name for a given attribute.
Returns the human name for a given attribute .
column_name
<not_specific>
scaffold_column_names,
a hash with the column name as a symbol key and the human name string as the value.
a hash with the column name as a symbol key and the human name string as the value .