summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/license.rb2
1 files changed, 1 insertions, 1 deletions
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)