washout_builder 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/washout_builder.rb +1 -0
- data/lib/washout_builder/dispatcher.rb +0 -10
- data/lib/washout_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YThlNjlkZGM4NmNiNWRlYjU0OGExNWVmYTg5ZjdlYTlkYjUyOTA2ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDgxZmMzODVhNmRkOWU0OGQ2ZDdiZGQ0OWQ4MmE5MjMxOTMxMWE3Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjYyNzY4MzE2M2Y0OWFmOTA5ZTQyOWI4MTJiODEwNjE1OTk5YTU2MjkzYjJj
|
10
|
+
NTAzODlkYjMxNmU4MTkxZjAwZTAyOTE4Yzk0NjNkYzFhZDBiNzE4YTI2Y2Yy
|
11
|
+
N2IwMjdiZGJmMTA0YmU2YTJiNjg3ZDkxZTY3MjcwMTZlZDBiZTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2JmOTE1OGYyOTk3M2E3MGRkZTk2OGI5NzBiMzVlZDM1YWNjM2Q1ZmE4NGFh
|
14
|
+
Yjc1Y2I0YTkyNGMwOGJkNzRjYmIyMWFiNDcwMWM5NDZhN2IwODQwODllZGYx
|
15
|
+
ZmZmMTI2NmZlZmY4OWI3MzM2MGRiNjJkZjU4NWFkMTU3NzY5OWU=
|
data/lib/washout_builder.rb
CHANGED
@@ -29,6 +29,7 @@ end
|
|
29
29
|
|
30
30
|
Mime::Type.register "application/soap+xml", :soap
|
31
31
|
ActiveRecord::Base.send :extend, WashOut::Model if defined?(ActiveRecord)
|
32
|
+
WashOut::Dispatcher::SOAPError.send :include, ActiveModel::MassAssignmentSecurity
|
32
33
|
|
33
34
|
WashOut::SOAP::ClassMethods.class_eval do
|
34
35
|
alias_method :original_soap_action, :soap_action
|
@@ -24,17 +24,7 @@ module WashoutBuilder
|
|
24
24
|
:_generate_wsdl, :_generate_doc,:_invalid_action ]
|
25
25
|
controller.send :before_filter, :_map_soap_parameters, :except => [
|
26
26
|
:_generate_wsdl,:_generate_doc, :_invalid_action ]
|
27
|
-
controller.send :around_filter, :_catch_soap_faults
|
28
27
|
end
|
29
28
|
|
30
|
-
def _catch_soap_faults
|
31
|
-
yield
|
32
|
-
rescue => exception
|
33
|
-
if exception.class <= WashOut::Dispatcher::SOAPError
|
34
|
-
WashOut::Dispatcher.send(:render_soap_error,exception.message, exception.code)
|
35
|
-
else
|
36
|
-
raise exception
|
37
|
-
end
|
38
|
-
end
|
39
29
|
end
|
40
30
|
end
|