' X is not missing constant Y ' , problem after rails update

app/models/login/connect.rb

^^^^ whats wrong with your model? why have to stuck them inside login
folder? If you must do something like that, then make sure, you
inherit stuff properly.

I have seen this stuff before, when i i tried to do something like
this, in one of my plugins.

class ActiveRecord::Schema
  # some migration foobar
end

Rewriting above code like this:

module ActiveRecord
  class Schema
    # some migration foobar
  end
end

fixed the error. :slight_smile:

Hemant Kumar wrote:

I have seen this stuff before, when i i tried to do something like
this, in one of my plugins.

class ActiveRecord::Schema
  # some migration foobar
end

Rewriting above code like this:

module ActiveRecord
  class Schema
    # some migration foobar
  end
end

fixed the error. :slight_smile:

In Rails 2.x, this approach only takes us halfway to the solution. See
this bug report[1] for the rest of the solution, which involves
monkeypatching the load_missing_constant() method.

[1]
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2283-unnecessary-exception-raised-in-asdependenciesload_missing_constant