Skip to content

Conversation

drcapulet
Copy link
Collaborator

No description provided.

@drcapulet drcapulet requested a review from nerdrew June 6, 2019 22:30
@drcapulet drcapulet force-pushed the alexc-dynamic-injection branch 2 times, most recently from 4e8ff77 to 3b023ff Compare June 6, 2019 22:36
env[Rails::Auth::Env::CREDENTIALS_ENV_KEY] = @credentials
(@credentials.respond_to?(:call) ? @credentials.call(env) : @credentials).tap do |credentials|
env[Rails::Auth::Env::CREDENTIALS_ENV_KEY] = credentials
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tap might be a bit overkill here.

credentials = @credentials.respond_to?(:call) ? @credentials.call(env) : @credentials
env[Rails::Auth::Env::CREDENTIALS_ENV_KEY] = credentials
@app.call(env)

@drcapulet drcapulet force-pushed the alexc-dynamic-injection branch from 3b023ff to 8c9f1bc Compare December 2, 2019 18:13
@claassistantio
Copy link

claassistantio commented Dec 2, 2019

CLA assistant check
All committers have signed the CLA.

@drcapulet drcapulet requested a review from baweaver December 3, 2019 13:03
@drcapulet drcapulet force-pushed the alexc-dynamic-injection branch from 8c9f1bc to bc10c1a Compare December 5, 2019 18:40
@drcapulet drcapulet merged commit fa93db5 into master Dec 5, 2019
@drcapulet drcapulet deleted the alexc-dynamic-injection branch December 5, 2019 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants