lib/action_view/lookup_context.rb
# 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).
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).
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) 
        return if unless_frozen && @frozen_formats
        self.formats = formats
        @frozen_formats = true
      end
def freeze_formats ( formats , unless_frozen = false ) return if unless_frozen && @frozen_formats self . formats = formats @frozen_formats = true end
Freeze the current formats in the lookup context.
Freeze the current formats in the lookup context .
#:nodoc:
formats
unless_frozen