@@ -9,7 +9,7 @@ module ActionView
99 # generate a key, given to view paths, used in the resolver cache lookup. Since
1010 # this key is generated just once during the request, it speeds up all cache accesses.
1111 class LookupContext #:nodoc:
12- attr_accessor :prefixes
12+ attr_accessor :prefixes , :rendered_format
1313
1414 mattr_accessor :fallbacks
1515 @@fallbacks = FallbackFileSystemResolver . instances
@@ -170,23 +170,15 @@ def normalize_name(name, prefixes) #:nodoc:
170170
171171 def initialize ( view_paths , details = { } , prefixes = [ ] )
172172 @details , @details_key = { } , nil
173- @frozen_formats , @ skip_default_locale = false , false
173+ @skip_default_locale = false
174174 @cache = true
175175 @prefixes = prefixes
176+ @rendered_format = nil
176177
177178 self . view_paths = view_paths
178179 initialize_details ( details )
179180 end
180181
181- # Freeze the current formats in the lookup context. By freezing them, you are guaranteeing
182- # that next template lookups are not going to modify the formats. The controller can also
183- # use this, to ensure that formats won't be further modified (as it does in respond_to blocks).
184- def freeze_formats ( formats , unless_frozen = false ) #:nodoc:
185- return if unless_frozen && @frozen_formats
186- self . formats = formats
187- @frozen_formats = true
188- end
189-
190182 # Override formats= to expand ["*/*"] values and automatically
191183 # add :html as fallback to :js.
192184 def formats = ( values )
0 commit comments