Permalink
Browse files

fix bad docs from f373f29 [ci skip]

  • Loading branch information...
1 parent f92c812 commit cc848d625068013b86dd24f316c3f5d538379a70 @vijaydev vijaydev committed Feb 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_view/lookup_context.rb
@@ -188,9 +188,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

0 comments on commit cc848d6

Please sign in to comment.