Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix method name in Renderer doc [ci skip] #27656

Merged

Conversation

y-yagi
Copy link
Member

@y-yagi y-yagi commented Jan 12, 2017

ActionController::Renderer.defaults was removed in 2db7304

@rails-bot
Copy link

r? @senny

(@rails-bot has picked a reviewer for you, use r? to override)

@@ -60,7 +60,7 @@ def with_defaults(defaults)
end

# Accepts a custom Rack environment to render templates in.
# It will be merged with ActionController::Renderer.defaults
# It will be merged with +ActionController::Renderer::DEFAULTS+

Choose a reason for hiding this comment

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

defaults is an attr_reader so ActionController::Renderer.defaults will work.

Choose a reason for hiding this comment

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

Ah I see what is happening, 👍

Choose a reason for hiding this comment

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

I wonder though this statement is useful or not?

Copy link
Member

Choose a reason for hiding this comment

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

May be

It will be merged with the default Rack environment defined by 
ActionController::Renderer::DEFAULTS.

?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks good. I updated. Thanks!

`ActionController::Renderer.defaults` was removed in 2db7304
@y-yagi y-yagi force-pushed the fix_method_name_in_renderer_doc branch from f48c765 to 67471a2 Compare January 12, 2017 14:35
@prathamesh-sonpatki prathamesh-sonpatki merged commit 242d7e1 into rails:master Jan 12, 2017
@prathamesh-sonpatki
Copy link
Member

Awesome, thanks 👍

@prathamesh-sonpatki
Copy link
Member

@kaspth Should this be backported? The change in 2db7304 was made before 5.0 was released.

@y-yagi y-yagi deleted the fix_method_name_in_renderer_doc branch January 12, 2017 21:49
kaspth pushed a commit that referenced this pull request Jan 14, 2017
fix method name in `Renderer` doc [ci skip]
@kaspth
Copy link
Contributor

kaspth commented Jan 14, 2017

Sure! On 5-0-stable in f1fe92e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants