aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/lookup_context.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-02-21 23:46:53 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-02-21 23:47:19 +0530
commita29554461e43f8c1b428422f49103aa80275bf46 (patch)
tree07a25a767716ef89e94c7b4af4d140b034220f5d /actionpack/lib/action_view/lookup_context.rb
parentd37a7e629834c5a83eef38cb09ba12433d30c802 (diff)
downloadrails-a29554461e43f8c1b428422f49103aa80275bf46.tar.gz
rails-a29554461e43f8c1b428422f49103aa80275bf46.tar.bz2
rails-a29554461e43f8c1b428422f49103aa80275bf46.zip
fix bad docs from f373f296 [ci skip]
Diffstat (limited to 'actionpack/lib/action_view/lookup_context.rb')
-rw-r--r--actionpack/lib/action_view/lookup_context.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/lookup_context.rb b/actionpack/lib/action_view/lookup_context.rb
index 90c4a2759a..948f8ec42b 100644
--- a/actionpack/lib/action_view/lookup_context.rb
+++ b/actionpack/lib/action_view/lookup_context.rb
@@ -178,9 +178,9 @@ module ActionView
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