• Tan Le's avatar
    Make concern module more auto-load friendly · 1b822029
    Tan Le authored
    The existing folder `app/controllers/admin/concerns` is not part of the
    top-level auto-load and making EE extension for this concern is
    problematic. Other non-admin controller
    (e.g. `OmniauthCallbacksController`) is also using this concern so it is
    better place in the standard `app/controllers/concerns` folder.
    
    The class is also renamed to be consistent with the existing counterpart
    `AuthenticatesWithTwoFactor` class and avoid issue with RSpec cop
    misreading the name due to usages of numbers and acronyms (i.e. `2FA`).
    1b822029
omniauth_callbacks_controller.rb 8.05 KB