diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-05-07 22:57:08 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-05-07 22:57:08 +0000 |
commit | 47a7084b94b8cd0dfc43e0b8f1775eef31c5170d (patch) | |
tree | de59c26718ad183b86693f3d45f50380b6510879 /actionwebservice/lib/action_web_service/support | |
parent | 8a41ea4588f87e963a467305a6757381b6387ca5 (diff) | |
download | rails-47a7084b94b8cd0dfc43e0b8f1775eef31c5170d.tar.gz rails-47a7084b94b8cd0dfc43e0b8f1775eef31c5170d.tar.bz2 rails-47a7084b94b8cd0dfc43e0b8f1775eef31c5170d.zip |
add base64 signature type (thanks, Shugo Maeda!)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/lib/action_web_service/support')
-rw-r--r-- | actionwebservice/lib/action_web_service/support/signature_types.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/actionwebservice/lib/action_web_service/support/signature_types.rb b/actionwebservice/lib/action_web_service/support/signature_types.rb index 253e9dcb6a..e0f0c2ecd8 100644 --- a/actionwebservice/lib/action_web_service/support/signature_types.rb +++ b/actionwebservice/lib/action_web_service/support/signature_types.rb @@ -40,8 +40,10 @@ module ActionWebService # :nodoc: case name when :int, :integer, :fixnum, :bignum :int - when :string, :base64 + when :string :string + when :base64 + :base64 when :bool, :boolean :bool when :float, :double @@ -73,6 +75,8 @@ module ActionWebService # :nodoc: :int elsif klass == String :string + elsif klass == Base64 + :base64 elsif klass == TrueClass || klass == FalseClass :bool elsif derived_from?(Float, klass) || derived_from?(Precision, klass) || derived_from?(Numeric, klass) @@ -94,6 +98,8 @@ module ActionWebService # :nodoc: Integer when :string String + when :base64 + Base64 when :bool TrueClass when :float @@ -197,4 +203,7 @@ module ActionWebService # :nodoc: true end end + + class Base64 < String + end end |