Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix bad docs from f373f29 [ci skip]

  • Loading branch information...
commit a29554461e43f8c1b428422f49103aa80275bf46 1 parent d37a7e6
@vijaydev vijaydev authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_view/lookup_context.rb
View
6 actionpack/lib/action_view/lookup_context.rb
@@ -178,9 +178,9 @@ def initialize(view_paths, details = {}, prefixes = [])
initialize_details(details)
end
- # Freeze the current formats in the lookup context. By freezing them, you
- # that next template lookups are not going to modify the formats. The con
- # use this, to ensure that formats won't be further modified (as it does
+ # Freeze the current formats in the lookup context. By freezing them, you are guaranteeing
+ # that next template lookups are not going to modify the formats. The controller can also
+ # use this, to ensure that formats won't be further modified (as it does in respond_to blocks).
def freeze_formats(formats, unless_frozen=false) #:nodoc:
return if unless_frozen && @frozen_formats
self.formats = formats
Please sign in to comment.
Something went wrong with that request. Please try again.