lib/active_tax/tax.rb in active_tax-0.1.0 vs lib/active_tax/tax.rb in active_tax-0.2.0
- old
+ new
@@ -13,15 +13,15 @@
def rate_from_address(address={})
self.state = address[:state] if address[:state]
case self.state.upcase
- when "WA"
+ when "WA", "WASHINGTON"
self.api_class = States::WA
else
raise StandardError, "API for #{self.state.upcase} not yet implemented in ActiveTax."
end
self.api_class.rate(address)
end
end
-end
\ No newline at end of file
+end