mirror of
https://github.com/github/rails.git
synced 2026-02-05 19:55:14 -05:00
Remove duplicate rjs layout check. Closes #9956 [Josh Peek]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7999 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1230,7 +1230,7 @@ module ActionController #:nodoc:
|
||||
def template_exempt_from_layout?(template_name = default_template_name)
|
||||
extension = @template && @template.pick_template_extension(template_name)
|
||||
name_with_extension = !template_name.include?('.') && extension ? "#{template_name}.#{extension}" : template_name
|
||||
extension == :rjs || @@exempt_from_layout.any? { |ext| name_with_extension =~ ext }
|
||||
@@exempt_from_layout.any? { |ext| name_with_extension =~ ext }
|
||||
end
|
||||
|
||||
def assert_existence_of_template_file(template_name)
|
||||
|
||||
Reference in New Issue
Block a user