public Method

Base.column_for_attribute(name)

Returns the column object for the named attribute.

Source Code

# File active_record/base.rb, line 2182
def column_for_attribute(name)
  self.class.columns_hash[name.to_s]
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.