lib/active_tax/tax.rb in active_tax-1.0.0 vs lib/active_tax/tax.rb in active_tax-1.1.0
- old
+ new
@@ -21,18 +21,18 @@
def tax
@tax ||= self.api_class.tax(address)
end
def rate
- tax.rate
+ tax && tax.rate
end
def location_code
- tax.location_code
+ tax && tax.location_code
end
def result_code
- tax.result_code
+ tax && tax.result_code
end
private
def determine_state_api