2011-04-13から1日間の記事一覧
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…
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…