diff options
| -rw-r--r-- | app/models/license.rb | 2 |
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) |
