タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

pluginとまとめに関するomochistのブックマーク (2)

  • netswitch! | Rails Plugin - ActiveRecord拡張系2

    :clear_after_save => trueを指定すると、save後はmodified?がtrueじゃなくなる。 person = Person.find(:first) person.age # 100 person.age = 10 person.age_modified? # true person.original_age # 100 person.modified_attributes # {:age => 100} # restore person.restore_attributes :only => :age person.age # 100 # clear person.clear_original_attributes :only => :age # dbと比較 person.modified?(:reload) # true

  • netswitch! | tag rails_plugin

    ♞ rake test:units (in /Users/nanki/work/...../trunk) rake aborted! undefined method `watch' for BenchmarkForRails:Module これは困った。 AutoLoadingがうまくいっていないようだが、この手の問題は追跡が難しい。 とりあえず適当な箇所で、require 'benchmark_for_rails'しておけば大丈夫だが、気持ち悪いので次の日原因を追ってみた。 p追跡の結果だけ書くと、rake 実行時に読み込まれるlogs.rake冒頭でのrequireで、BenchmarkForRailsモジュールが初期化されて、来読まれて欲しいはずの、benchmark_for_rails.rbがロードされないのが問題。 # in vendor/plugins/benchmark_

  • 1