Skip to content

Authlogic stops working with config.eager_load = true #458

@yvbeek

Description

@yvbeek

I have the (monstrous) task of upgrading a project from Ruby 1.8.7 to 2.2.2 and Rails 3.2.18 to 4.2. Things were going pretty well, the development environment was ok, so I decided to try out the production environment... good feeling gone.

When I try to save my session, I get:

undefined method `valid_password?'

After quite some time debugging the issue, I noticed that everything works fine if I change the Rails setting config.eager_load to false.

It seems that the methods normally dynamically added by Authlogic to my Operator model class aren't there. Does anyone have a clue how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions