2012-01-21 2 views

답변

3

DM 1.3 베타는 적어도 데모 dm_rails 앱의 경우 3.2.1에서 작동하는 것으로 보입니다.

나는 아래 (

내가 내 Gemfile.lock 파일을 삭제 1.3 베타 버전으로 업데이트하려면 각 DM 보석의 자식 저장소를 지정 설정/환경/development.rb에서 두 개의 "active_record"줄을 주석했다), 번들 설치를 실행했습니다.

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 
관련 문제