From 7345c8d5de96181aae17356bcdbcdec1927dbfe6 Mon Sep 17 00:00:00 2001 From: Leandro Marcucci Date: Thu, 5 Dec 2013 22:38:15 -0300 Subject: [PATCH] Fetch on auth_data call. --- lib/bravo/auth_data.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bravo/auth_data.rb b/lib/bravo/auth_data.rb index f81d0ae..754ac7a 100644 --- a/lib/bravo/auth_data.rb +++ b/lib/bravo/auth_data.rb @@ -34,6 +34,7 @@ def fetch # @return [Hash] # def auth_hash + fetch unless Bravo.constants.include?(:TOKEN) && Bravo.constants.include?(:SIGN) { 'Token' => Bravo::TOKEN, 'Sign' => Bravo::SIGN, 'Cuit' => Bravo.cuit } end