Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

uninitialized constant Object::ActiveRecod in model_additions.rb #16

Open
neutronz opened this issue Jan 26, 2011 · 1 comment
Open

Comments

@neutronz
Copy link

I'm using: Ruby 1.9.2, populator 1.0.0, Rails 3.0.3, and bundler 1.0.9

When I tried starting a bundler console this error happend. It seems that AR isn't required yet so the dependency isn't met. It works when I added require 'active_record' at the top of the file but not sure that's the best thing to do.

$> bundle console
/Users/.rvm/gems/ruby-1.9.2-p136/gems/populator-1.0.0/lib/populator/model_additions.rb:30:in <top (required)>': uninitialized constant Object::ActiveRecord (NameError) from /Users/.rvm/gems/ruby-1.9.2-p136/gems/populator-1.0.0/lib/populator.rb:2:inrequire'
from /Users/.rvm/gems/ruby-1.9.2-p136/gems/populator-1.0.0/lib/populator.rb:2:in <top (required)>' from /Users/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/runtime.rb:68:inrequire'
from /Users/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/runtime.rb:68:in block (2 levels) in require' from /Users/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/runtime.rb:66:ineach'
from /Users/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/runtime.rb:66:in block in require' from /Users/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/runtime.rb:55:ineach'
from /Users/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/runtime.rb:55:in require' from /Users/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler.rb:114:inrequire'
from /Users/.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/cli.rb:436:in console' from /Users//.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/vendor/thor/task.rb:22:inrun'
from /Users//.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/vendor/thor/invocation.rb:118:in invoke_task' from /Users//.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/vendor/thor.rb:246:indispatch'
from /Users//.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/lib/bundler/vendor/thor/base.rb:389:in start' from /Users//.rvm/gems/ruby-1.9.2-p136/gems/bundler-1.0.9/bin/bundle:13:in<top (required)>'
from /Users//.rvm/gems/ruby-1.9.2-p136/bin/bundle:19:in load' from /Users//.rvm/gems/ruby-1.9.2-p136/bin/bundle:19:in

'

@proton
Copy link

proton commented May 30, 2011

Same problem on ruby 1.8.7, rails 3.0.7, populator 1.0.0, mongoid 2.0.2
Does it work with mongoid?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants