summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-21 23:33:58 -0700
committermo khan <mo@mokhan.ca>2014-02-21 23:33:58 -0700
commit6f1ae8d74d3e9c7837e8b0bbdfc4c5f1ee354a8c (patch)
tree27874fa17feb8aa125fc37aa1d7da4663418a741 /app/models
parentdaf9b2bb2302e0d8901dd6dee12468f72d5b1ea7 (diff)
replace string with hash notation.
Diffstat (limited to 'app/models')
-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)