plataformatec/has_scope — Issue #22: Not working under Rails 2.3.8
Author: davividal
Created: 2011-10-14 14:56:09+00:00
State: open

Here is the backtrace when I try to run /script/server:

$ ./script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
/home/davi/.rvm/gems/ruby-1.8.7-p352/gems/has_scope-0.5.1/lib/has_scope.rb:15:in `included': undefined method `class_attribute' for ActionController::Base:Class (NoMethodError)
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/has_scope-0.5.1/lib/has_scope.rb:12:in `class_eval'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/has_scope-0.5.1/lib/has_scope.rb:12:in `included'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/has_scope-0.5.1/lib/has_scope.rb:187:in `include'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/has_scope-0.5.1/lib/has_scope.rb:187:in `send'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/has_scope-0.5.1/lib/has_scope.rb:187
from /home/davi/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/davi/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/rails-2.3.8/lib/rails/gem_dependency.rb:215:in `load'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/rails-2.3.8/lib/initializer.rb:307:in `each'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/rails-2.3.8/lib/initializer.rb:164:in `process'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
from /home/davi/Documents/dev/project/config/environment.rb:10
from /home/davi/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/davi/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
from /home/davi/.rvm/gems/ruby-1.8.7-p352/gems/rails-2.3.8/lib/commands/server.rb:84
from /home/davi/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/davi/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from ./script/server:3

What am I missing?