gotmayonase / peek-active_resource

MIT License
3 stars 5 forks source link

uninitialized constant ActiveResource (NameError) #1

Open elikem opened 9 years ago

elikem commented 9 years ago

I get a the following error when I restart my app after adding this peek plugin.

gems/peek-active_resource-1.0.0/lib/peek/views/active_resource.rb:1:in `<top (required)>': uninitialized constant ActiveResource (NameError)

How would I go about fixing this? Is there any log data I could provide to help?

MaRoe commented 9 years ago

I have the same issue.

andreorvalho commented 8 years ago

I have got the same issue here is a stacktrace:

bundle exec rake db:drop --trace rake aborted! NameError: uninitialized constant ActiveResource::Connection::Atomic /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/peek-active_resource-1.0.0/lib/peek/views/active_resource.rb:5:in class:Connection' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/peek-active_resource-1.0.0/lib/peek/views/active_resource.rb:1:in' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/peek-active_resource-1.0.0/lib/peek-active_resource.rb:2:in <top (required)>' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/bundler-1.7.9/lib/bundler/runtime.rb:76:inrequire' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/bundler-1.7.9/lib/bundler/runtime.rb:76:in block (2 levels) in require' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/bundler-1.7.9/lib/bundler/runtime.rb:72:ineach' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/bundler-1.7.9/lib/bundler/runtime.rb:72:in block in require' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/bundler-1.7.9/lib/bundler/runtime.rb:61:ineach' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/bundler-1.7.9/lib/bundler/runtime.rb:61:in require' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/bundler-1.7.9/lib/bundler.rb:134:inrequire' /Users/andreorvalho/projects/foodies_cube/config/application.rb:8:in <top (required)>' /Users/andreorvalho/projects/foodies_cube/Rakefile:4:inrequire' /Users/andreorvalho/projects/foodies_cube/Rakefile:4:in <top (required)>' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/lib/rake/rake_module.rb:28:inload' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/lib/rake/rake_module.rb:28:in load_rakefile' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/lib/rake/application.rb:689:inraw_load_rakefile' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/lib/rake/application.rb:94:in block in load_rakefile' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/lib/rake/application.rb:176:instandard_exception_handling' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/lib/rake/application.rb:93:in load_rakefile' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/lib/rake/application.rb:77:inblock in run' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/lib/rake/application.rb:176:in standard_exception_handling' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/lib/rake/application.rb:75:inrun' /opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rake-11.1.1/bin/rake:33:in <top (required)>' /opt/boxen/rbenv/versions/2.1.1/bin/rake:23:inload' /opt/boxen/rbenv/versions/2.1.1/bin/rake:23:in `

Daniel-ltw commented 7 years ago

https://github.com/ruby-concurrency/atomic

The Atomic.new call is deprecated.