The code powering m.abunchtell.com https://m.abunchtell.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

26 řádky
439 B

  1. # frozen_string_literal: true
  2. class Auth::SessionsController < Devise::SessionsController
  3. include Devise::Controllers::Rememberable
  4. layout 'auth'
  5. def create
  6. super do |resource|
  7. remember_me(resource)
  8. end
  9. end
  10. protected
  11. def after_sign_in_path_for(_resource)
  12. last_url = stored_location_for(:user)
  13. if [about_path].include?(last_url)
  14. root_path
  15. else
  16. last_url || root_path
  17. end
  18. end
  19. end