SomeModel.get(id) always returns nil

7 views
Skip to first unread message

vm

unread,
Jun 30, 2011, 11:40:07 AM6/30/11
to datam...@googlegroups.com
Hello,
i'm trying to upgrade to 1.1 from 1.0.1 in our project, but model always returns nil when getting it by id with SomeModel.get(id) method. In log i can see that it produces  proper query. SomeModel.first(:id => id) returns object as expected. SomeModel.get! raise 'Could not find SomeModel with key [79]'

gemfile:
RAILS_VERSION = '~> 3.0.9'
DM_VERSION    = '~> 1.1.0'
gem 'rails',              RAILS_VERSION
gem 'activesupport',      RAILS_VERSION, :require => 'active_support'
gem 'actionpack',         RAILS_VERSION, :require => 'action_pack'
gem 'railties',           RAILS_VERSION, :require => 'rails'

gem 'dm-rails' ,          '~> 1.1.0'
gem 'dm-oracle-adapter', DM_VERSION
gem 'ruby-oci8'
gem 'ruby-plsql'
gem 'dm-validations',       DM_VERSION
gem 'dm-aggregates',        DM_VERSION
Reply all
Reply to author
Forward
0 new messages