Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanRada committed Dec 16, 2013
1 parent 69851cb commit be9df11
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
14 changes: 11 additions & 3 deletions lib/washout_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require 'washout_builder/engine'
require 'washout_builder/document/complex_type'
require 'washout_builder/document/virtus_model'
require 'washout_builder/document/fault'
require 'washout_builder/document/generator'
require 'washout_builder/dispatcher'
require 'washout_builder/type'
Expand Down Expand Up @@ -40,8 +39,17 @@ def initialize(attributes = nil)


WashOut::Param.send :include, WashoutBuilder::Document::ComplexType
SOAPError.send :extend, WashoutBuilder::Document::Fault
WashOut::SOAPError.send :extend, WashoutBuilder::Document::Fault

[WashOut::SOAPError, SOAPError].each do |exception_class|
exception_class.class_eval do
extend WashoutBuilder::Document::VirtusModel
include Virtus.model
attribute :code, Integer
attribute :message, String
attribute :backtrace, String
end
end




Expand Down
12 changes: 0 additions & 12 deletions lib/washout_builder/document/fault.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/washout_builder/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module WashoutBuilder
VERSION = "0.10.0"
VERSION = "0.10.1"
end

0 comments on commit be9df11

Please sign in to comment.