mooman / rails3_sequel

Rails 3 Sequel integration
MIT License
4 stars 0 forks source link

Rails 3 RC : uninitialized constant Rails::LogSubscriber (NameError) #1

Open garrettheaver opened 14 years ago

garrettheaver commented 14 years ago

startup issue with the new release candidate

/Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/rails3_sequel-0.3.0/lib/rails3_sequel/railties/log_subscriber.rb:4:in `<module:Railties>': uninitialized constant Rails::LogSubscriber (NameError)
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/rails3_sequel-0.3.0/lib/rails3_sequel/railties/log_subscriber.rb:3:in `<module:Sequel>'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/rails3_sequel-0.3.0/lib/rails3_sequel/railties/log_subscriber.rb:2:in `<module:Rails>'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/rails3_sequel-0.3.0/lib/rails3_sequel/railties/log_subscriber.rb:1:in `<top (required)>'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/rails3_sequel-0.3.0/lib/rails3_sequel/railtie.rb:14:in `require'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/rails3_sequel-0.3.0/lib/rails3_sequel/railtie.rb:14:in `<top (required)>'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/rails3_sequel-0.3.0/lib/rails3_sequel.rb:1:in `require'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/rails3_sequel-0.3.0/lib/rails3_sequel.rb:1:in `<top (required)>'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/bundler-1.0.0.rc.1/lib/bundler/runtime.rb:64:in `require'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/bundler-1.0.0.rc.1/lib/bundler/runtime.rb:64:in `block (2 levels) in require'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/bundler-1.0.0.rc.1/lib/bundler/runtime.rb:62:in `each'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/bundler-1.0.0.rc.1/lib/bundler/runtime.rb:62:in `block in require'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/bundler-1.0.0.rc.1/lib/bundler/runtime.rb:51:in `each'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/bundler-1.0.0.rc.1/lib/bundler/runtime.rb:51:in `require'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/bundler-1.0.0.rc.1/lib/bundler.rb:109:in `require'
from /Users/garrett/Projects/caiman/vulcan/config/application.rb:11:in `<top (required)>'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/railties-3.0.0.rc/lib/rails/commands.rb:21:in `require'
from /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/railties-3.0.0.rc/lib/rails/commands.rb:21:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
garrettheaver commented 14 years ago

found in change logs

garrettheaver commented 14 years ago

looks like an API change

DEPRECATION WARNING: log_subscriber is deprecated and has no effect. (called from class:Railtie at /Users/garrett/.rvm/gems/ruby-1.9.2-rc2/gems/rails3_sequel-0.3.0/lib/rails3_sequel/railtie.rb:19)

mooman commented 14 years ago

awesome, thank you for letting me know! i'll make the change.

mooman commented 14 years ago

pushed this change, i'll run some tests later and update the gem.

garrettheaver commented 14 years ago

cheers. i'd have submitted a patch but it was kind of redundant given it was only a single line change to get it running again. not sure what the deal is with the deprecation though.