From f36998f7597c2a7c1829b8129f726c54dec92099 Mon Sep 17 00:00:00 2001 From: Didde Brockman Date: Tue, 11 Mar 2014 09:25:44 +0100 Subject: [PATCH] Support header injection. Signed-off-by: Mario A Chavez --- lib/api_taster.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/api_taster.rb b/lib/api_taster.rb index 81d1168..25e7895 100644 --- a/lib/api_taster.rb +++ b/lib/api_taster.rb @@ -15,6 +15,9 @@ module ApiTaster mattr_accessor :route_path self.route_path = "#{Rails.root}/lib/api_tasters" + mattr_accessor :global_headers + self.global_headers = {} + def self.routes(&block) ApiTaster::RouteCollector.routes << block end