From 6f1ae8d74d3e9c7837e8b0bbdfc4c5f1ee354a8c Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 21 Feb 2014 23:33:58 -0700 Subject: replace string with hash notation. --- app/models/license.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') diff --git a/app/models/license.rb b/app/models/license.rb index 77aad5f..2b4fc3c 100644 --- a/app/models/license.rb +++ b/app/models/license.rb @@ -11,7 +11,7 @@ class License < ActiveRecord::Base end def self.township(township) - joins(:location).where('locations.township = ?', township) + joins(:location).where(locations: { township: township }) end def self.status(status) -- cgit v1.2.3