我只是試圖更新項目中使用的DataMapper 1.2(1.1),現在我得到這個錯誤:未定義的方法opts_from_validator_args
/home/joe/.rvm/gems/[email protected]/gems/dm-core-1.2.0/lib/dm-core/model/relationship.rb:372:in `method_missing': undefined method `opts_from_validator_args' for Category:Class (NoMethodError)
它發生在一個行,我叫has_attached_file
從DM-回形針。我嘗試更新到dm-paperclip-r3,因爲該項目在Rails 3上,但這並沒有幫助。
關於什麼可能會導致此錯誤的任何想法?
似乎dm-paperclip正在調用這個方法,這是一種來自dm-validation的方法,並且顯然不再作爲公共方法或其他東西存在......?但我不確定它應該做什麼,所以我不知道如何爲它編寫修復程序。 – mltsy 2012-04-12 01:03:45