From c0101c6d06323068526725558ef4f0bbe1f75109 Mon Sep 17 00:00:00 2001 From: bogdanRada Date: Wed, 8 Jan 2014 09:56:16 +0200 Subject: [PATCH] fix for showing service description --- lib/washout_builder.rb | 16 ++++++++++++++++ lib/washout_builder/version.rb | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/washout_builder.rb b/lib/washout_builder.rb index 1b68c2c..3527c69 100644 --- a/lib/washout_builder.rb +++ b/lib/washout_builder.rb @@ -65,6 +65,22 @@ def initialize(attributes = nil) end end +if defined?(WashOut::SoapConfig) + WashOut::SoapConfig.class_eval do + self.singleton_class.send(:alias_method, :original_config, :config) + self.singleton_class.send(:alias_method, :original_keys, :keys) + + def self.keys + @keys = config.keys + end + + def self.config + original_config.merge({description: nil}) + end + + end + WashOut::SoapConfig.soap_accessor(:description) +end WashOut::Param.class_eval do diff --git a/lib/washout_builder/version.rb b/lib/washout_builder/version.rb index 9eb2517..b1be2b8 100644 --- a/lib/washout_builder/version.rb +++ b/lib/washout_builder/version.rb @@ -1,3 +1,3 @@ module WashoutBuilder - VERSION = "0.11.3" + VERSION = "0.11.4" end