aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-12 12:40:52 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-12 12:40:52 +1100
commit8927824478ddac22c7dd8239ed5586031847ab04 (patch)
tree738a4f07faefa15c3bfc1e1c0f130145fc59255c /app/controllers/application_controller.rb
parent8039ac21001f918454b6fcc37153f311bca83114 (diff)
Simplify param_exists method
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
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