^^^^ 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
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.
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.