class method
self.exempt_from_layout
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
self.exempt_from_layout(*extensions)
Don’t render layouts for templates with the given extensions.
Parameters
-
extensionsrest
Source
# File actionpack/lib/action_view/template.rb, line 104
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
Defined in actionpack/lib/action_view/template.rb line 104
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Template