diff options
Diffstat (limited to 'actionwebservice/lib/action_web_service/vendor/ws/types.rb')
-rw-r--r-- | actionwebservice/lib/action_web_service/vendor/ws/types.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionwebservice/lib/action_web_service/vendor/ws/types.rb b/actionwebservice/lib/action_web_service/vendor/ws/types.rb index 650cdb0848..88098b5bce 100644 --- a/actionwebservice/lib/action_web_service/vendor/ws/types.rb +++ b/actionwebservice/lib/action_web_service/vendor/ws/types.rb @@ -146,6 +146,9 @@ module WS value.to_s when :bool return false if value.nil? + int_value = Integer(value) rescue nil + return true if int_value == 1 + return false if int_value == 0 value = value.to_s return true if value == 'true' return false if value == 'false' |