application_controller.rb 247 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class ApplicationController < ActionController::Base
  3. protect_from_forgery with: :exception
  4. def after_sign_in_path_for(user)
  5. if user.twitter.nil?
  6. root_path
  7. else
  8. friends_path
  9. end
  10. end
  11. end