Hi RoRo,
At work we have a very old app running on Heroku (yes, 2.3 is very old now).
It's on Aspen and I've been trying to migrate it over to Cedar, unfortunately
the original developer no longer works here. As part of migrating it I've
switched it over to using bundler and upgraded it to 2.3.14 (though still on
ruby 1.8.7). Of course I haven't been able to get it running locally.
We're running out of time to get it running on Cedar (Aspen will be sunsetted
in a few days) so I'm starting to get desperate.
I've been banging my head against the wall for two days now and not really
getting anywhere. I've managed to figure out what versions of everything it
used to run on, but it won't run now. The culprit at the moment is Devise.
I don't really understand the issue, but I'll give you a stack trace.
/Users/ben/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:611:in
`to_constant_name': Anonymous modules have no name to be referenced by
(ArgumentError)
from
/Users/ben/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:417:in
`qualified_name_for'
from
/Users/ben/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:130:in
`const_missing'
from /Users/ben/.rvm/gems/ruby-1.8.7-p371/gems/devise-0.4.3/lib/devise.rb:55:in
`mailer_sender='
from /Users/ben/Dropbox/dev/redacted/config/initializers/devise.rb:21
from /Users/ben/.rvm/gems/ruby-1.8.7-p371/gems/devise-0.4.3/lib/devise.rb:45:in
`setup'
from /Users/ben/Dropbox/dev/redacted/config/initializers/devise.rb:5
…
The particular method it's calling is
module Devise
def self.mailer_sender=(value)
DeviseMailer.sender = value
end
end
The version of Devise is very old, but that's the one it's been running on.
I've tried it on devise up to 0.7 but still get the same errors. I'm wary of
going too far forwards as there were a bunch of breaking changes.
There seems to be some problem loading Devise's modules. If I work around this
particular Devise call, it later on stalls at:
class User < ActiveRecord::Base
devise :all
end
With
Users/ben/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-2.3.4/lib/active_record/base.rb:1959:in
`method_missing_without_paginate': undefined method `devise' for
#<Class:0x1036a6720> (NoMethodError)
from
/Users/ben/.rvm/gems/ruby-1.8.7-p371/gems/will_paginate-2.3.16/lib/will_paginate/finder.rb:170:in
`method_missing'
from /Users/ben/Dropbox/dev/redacted/app/models/user.rb:6
Would be amazing if anyone could point me at anything. I've been googling all
around, changing versions and diving into the Devise source, but I feel like
there's much too much going on here for me to understand every possibility. It
also doesn't help that the app is quite old.
Cheers,
- Ben
--
You received this message because you are subscribed to the Google Groups "Ruby
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rails-oceania?hl=en.