diff options
author | Kassio Borges <kassioborgesm@gmail.com> | 2013-08-23 22:46:49 -0300 |
---|---|---|
committer | Kassio Borges <kassioborgesm@gmail.com> | 2013-08-24 15:24:36 -0300 |
commit | 424a5a7d46176eaa9617ad4fdc99d8c2be53b186 (patch) | |
tree | b5fba23f5475f48692b6298863217669c0f0a624 /actionpack/lib/action_view/lookup_context.rb | |
parent | adf6e30e3ad448c1edf2878255922a3faaa77c99 (diff) | |
download | rails-424a5a7d46176eaa9617ad4fdc99d8c2be53b186.tar.gz rails-424a5a7d46176eaa9617ad4fdc99d8c2be53b186.tar.bz2 rails-424a5a7d46176eaa9617ad4fdc99d8c2be53b186.zip |
fix issue #11605
Diffstat (limited to 'actionpack/lib/action_view/lookup_context.rb')
-rw-r--r-- | actionpack/lib/action_view/lookup_context.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/lookup_context.rb b/actionpack/lib/action_view/lookup_context.rb index 1a656ed37f..9f617a9a53 100644 --- a/actionpack/lib/action_view/lookup_context.rb +++ b/actionpack/lib/action_view/lookup_context.rb @@ -103,7 +103,7 @@ module ActionView # Helpers related to template lookup using the lookup context information. module ViewPaths - attr_reader :view_paths, :html_fallback_for_js + attr_reader :view_paths # Whenever setting view paths, makes a copy so we can manipulate then in # instance objects as we wish. @@ -200,10 +200,7 @@ module ActionView def formats=(values) if values values.concat(default_formats) if values.delete "*/*" - if values == [:js] - values << :html - @html_fallback_for_js = true - end + values << :html if values == [:js] end super(values) end |