Skip to content

Allow custom .includes( ... ) for current_user #42

@glacials

Description

@glacials

Thanks for all your hard work on Authie, I've been using it for 9 years in my project and it has served me well!

I recently enabled strict_loading mode in Rails and it has identified some application code where I fetch associations through current_user, resulting in extra queries.

Since I don't control current_user and I'm not keen to monkey patch it, I've had to disable strict loading mode for User. It would be great to be able to effectively call current_user.includes(:associations)... or similar, so I could reduce the number of queries hitting the database and enable strict loading mode again for User.

Thanks for reading!

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