-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Actionpack typo fixes. #35030
Actionpack typo fixes. #35030
Conversation
@@ -7,7 +7,11 @@ | |||
|
|||
module AbstractController | |||
class DoubleRenderError < Error | |||
DEFAULT_MESSAGE = "Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like \"redirect_to(...) and return\"." | |||
DEFAULT_MESSAGE = "Render and/or redirect were called multiple times in this action. " \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For breaking up strings, you could also use a heredoc and squish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are cosmetic changes which we don’t accept.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup. Can you please revert. If you want to fix typos, it is fine. If you want to change the way the code looks, please don't.
@@ -7,7 +7,11 @@ | |||
|
|||
module AbstractController | |||
class DoubleRenderError < Error | |||
DEFAULT_MESSAGE = "Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like \"redirect_to(...) and return\"." | |||
DEFAULT_MESSAGE = "Render and/or redirect were called multiple times in this action. " \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are cosmetic changes which we don’t accept.
@@ -73,7 +73,7 @@ def initialize(controller, env, defaults) | |||
# The primary options are: | |||
# * <tt>:partial</tt> - See <tt>ActionView::PartialRenderer</tt> for details. | |||
# * <tt>:file</tt> - Renders an explicit template file. Add <tt>:locals</tt> to pass in, if so desired. | |||
# It shouldn’t be used directly with unsanitized user input due to lack of validation. | |||
# It shouldn't be used directly with unsanitized user input due to lack of validation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really necessary?
@@ -795,7 +795,7 @@ def init_with(coder) # :nodoc: | |||
@permitted = coder.map["ivars"][:@permitted] | |||
when "!ruby/object:ActionController::Parameters" | |||
# YAML's Object format. Only needed because of the format | |||
# backwardscompability above, otherwise equivalent to YAML's initialization. | |||
# backwards compatibility above, otherwise equivalent to YAML's initialization. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’d rather keep the git history here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is fine here. That word doesn't exist 😄
@kaspth @rafaelfranca I think this is good to go now. We can merge this. |
No description provided.