diff options
author | Stephen Bussey <steve.bussey@salesloft.com> | 2015-03-17 10:36:21 -0400 |
---|---|---|
committer | Stephen Bussey <steve.bussey@salesloft.com> | 2015-04-05 15:46:50 -0400 |
commit | 0de4a23d1cfa6ef44a27ac8aca5055487282460e (patch) | |
tree | ed20e13bfae6f75facebf8ee24f7e7c5da25fb53 /actionview/lib | |
parent | 9040699aed64a725cc66461d63f794abc2f13afc (diff) | |
download | rails-0de4a23d1cfa6ef44a27ac8aca5055487282460e.tar.gz rails-0de4a23d1cfa6ef44a27ac8aca5055487282460e.tar.bz2 rails-0de4a23d1cfa6ef44a27ac8aca5055487282460e.zip |
head no_content when there is no template or action performed
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/lookup_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/lookup_context.rb b/actionview/lib/action_view/lookup_context.rb index 36855ec3d0..4452dcfed5 100644 --- a/actionview/lib/action_view/lookup_context.rb +++ b/actionview/lib/action_view/lookup_context.rb @@ -126,7 +126,7 @@ module ActionView @view_paths.find_all(*args_for_lookup(name, prefixes, partial, keys, options)) end - def exists?(name, prefixes = [], partial = false, keys = [], options = {}) + def exists?(name, prefixes = [], partial = false, keys = [], **options) @view_paths.exists?(*args_for_lookup(name, prefixes, partial, keys, options)) end alias :template_exists? :exists? |