This method is deprecated or moved on the latest stable version.
The last existing version (v2.2.1) is shown here.
exempt_from_layout(*extensions)
public
Don’t render layouts for
templates with the given extensions.
# File actionpack/lib/action_view/base.rb, line 179
def self.exempt_from_layout(*extensions)
regexps = extensions.collect do |extension|
extension.is_a?(Regexp) ? extension : /\.#{Regexp.escape(extension.to_s)}$/
end
@@exempt_from_layout.merge(regexps)
end