app/controllers/overrides/omniauth_callbacks_controller.rb
# derive allowed params from the standard devise parameter sanitizer
derive allowed params from the standard devise parameter sanitizer
derive allowed params from the standard devise parameter sanitizer
def whitelisted_params
      whitelist = params_for_resource(:sign_up)
      whitelist.inject({}){|coll, key|
        param = omniauth_params[key.to_s]
        if param
          coll[key] = param
        end
        coll
      }
    end
def whitelisted_params whitelist = params_for_resource ( :sign_up ) whitelist . inject ( { } ) { | coll , key | param = omniauth_params [ key . to_s ] if param coll [ key ] = param end coll } end
derive allowed params from the standard devise parameter sanitizer
derive allowed params from the standard devise parameter sanitizer