2012-01-21 62 views

回答

3

DM 1.3測試版似乎與3.2.1一起工作,至少對於演示dm_rails應用程序。

我不得不註釋掉配置/環境/ development.rb兩個「active_record」線

要更新到1.3測試版我刪除了我Gemfile.lock的文件,指定Git倉庫每個DM寶石(以下),然後運行捆綁安裝。

gem 'dm-core', git: 'https://github.com/datamapper/dm-core' 
gem 'dm-active_model', git: 'https://github.com/datamapper/dm-active_model.git' 
gem 'dm-validations', git: 'https://github.com/datamapper/dm-validations.git' 
gem 'dm-rails', git: 'https://github.com/datamapper/dm-rails.git' 
gem 'dm-migrations', git: 'https://github.com/datamapper/dm-migrations' 
gem 'dm-types', git: 'https://github.com/datamapper/dm-types' 
gem 'dm-constraints', git: 'https://github.com/datamapper/dm-constraints' 
gem 'dm-transactions', git: 'https://github.com/datamapper/dm-transactions' 
gem 'dm-aggregates', git: 'https://github.com/datamapper/dm-aggregates' 
gem 'dm-timestamps', git: 'https://github.com/datamapper/dm-timestamps' 
gem 'dm-observer', git: 'https://github.com/datamapper/dm-observer' 


gem 'dm-do-adapter', git: 'https://github.com/datamapper/dm-do-adapter' 
gem 'dm-sqlite-adapter', git: 'https://github.com/datamapper/dm-sqlite-adapter' 

之後,示例項目工作正常。

0

直到DataMapper的1.3願同ActiveReload支持,您可以添加以下到您的配置/環境/ development.rb保持重載車型的老路上:

config.reload_classes_only_on_change = false