public Method

Base.[]=(attr_name, value)

Updates the attribute identified by attr_name with the specified value. (Alias for the protected write_attribute method).

Source Code

# File active_record/base.rb, line 2100
def []=(attr_name, value)
  write_attribute(attr_name, value)
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.