Skip to content

Commit

Permalink
fix bad docs from f373f29 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev committed Feb 21, 2012
1 parent f92c812 commit cc848d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/action_view/lookup_context.rb
Expand Up @@ -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
Expand Down

0 comments on commit cc848d6

Please sign in to comment.