Sha256: 64ce11ad7202f485426fc89de644efdbcc5d1492276afa61c3cde7662e5ab761
Contents?: true
Size: 453 Bytes
Versions: 7
Compression:
Stored size: 453 Bytes
Contents
# frozen_string_literal: true require 'devise/omniauth' require 'omniauth-g5' OmniAuth.config.on_failure do |env| env['devise.mapping'] = Devise::Mapping.find_by_path!(env['PATH_INFO'], :path) controller_name = ActiveSupport::Inflector.camelize( env['devise.mapping'].controllers[:sessions] ) controller_klass = ActiveSupport::Inflector.constantize( "#{controller_name}Controller" ) controller_klass.action(:failure).call(env) end
Version data entries
7 entries across 7 versions & 1 rubygems