diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-02-12 12:40:52 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-02-12 12:40:52 +1100 |
commit | 8927824478ddac22c7dd8239ed5586031847ab04 (patch) | |
tree | 738a4f07faefa15c3bfc1e1c0f130145fc59255c /app/controllers/application_controller.rb | |
parent | 8039ac21001f918454b6fcc37153f311bca83114 (diff) |
Simplify param_exists method
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ed1523f75..289f51b20 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -457,7 +457,7 @@ class ApplicationController < ActionController::Base end def param_exists(item) - return params[item] && !params[item].empty? + params.has_key?(item) end def get_request_variety_from_params |