static public Method

Base.columns_hash

Returns a hash of column objects for the table associated with this class.

Source Code

# File active_record/base.rb, line 1087
def columns_hash
  @columns_hash ||= columns.inject({}) { |hash, column| hash[column.name] = column; hash }
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.