summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-21 06:40:45 -0700
committermo khan <mo@mokhan.ca>2014-02-21 06:40:45 -0700
commitcaaba52706c1aaba8c0831256d597ec85c473dfc (patch)
tree2df4e167b44d79cfb30b6ea3f630d30e561f4ac4 /app/controllers
parent676c9df5c6da3f60fd8f1a6184810acff5d74df9 (diff)
extract query method to look up the matching status.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/v1/company_licenses_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/v1/company_licenses_controller.rb b/app/controllers/v1/company_licenses_controller.rb
index 32e3bc1..234345c 100644
--- a/app/controllers/v1/company_licenses_controller.rb
+++ b/app/controllers/v1/company_licenses_controller.rb
@@ -9,7 +9,7 @@ class V1::CompanyLicensesController < ApplicationController
private
def search_filters
- { status: LicenseStatus::ACTIVE, township: params[:township] }
+ { status: LicenseStatus.find_match(params[:status]), township: params[:township] }
end
def filter_using(scope, filters)