ActiveRecordのsaveやupdate_attribute(s)がどのような仕組みになっているのかのメモ 環境 rails1.2.3 ソースコード # activerecord/lib/active_record/base.rb 1545 def save 1546 create_or_update 1547 end # 中略 1584 def update_attribute(name, value) 1585 send(name.to_s + '=', value) 1586 save 1587 end # 中略 1591 def update_attributes(attributes) 1592 self.attributes = attributes 1593 save 1594 end # 中略 1787 private 1788 def create_or_upda