Skip to content
Browse files

Ruby 1.8.7 bug fix

Issue with type not coming off the active model serlizers object.
  • Loading branch information...
1 parent 581a0f3 commit 3d4d0d16a0e4c31b7409aeca9bc03dfdbe8c7294 @leondewey committed Jul 11, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/api_canon/swagger/api_declaration.rb
View
6 lib/api_canon/swagger/api_declaration.rb
@@ -79,7 +79,7 @@ def parameters
class Parameter < ActiveModel::Serializer
self.root = false
attributes :param_type => :paramType,
- :type => :dataType,
+ :data_type => :dataType,
:allowable_values => :allowableValues,
:allow_multiple => :allowMultiple
@@ -119,6 +119,10 @@ def allow_multiple
object.multiple?
end
+ def data_type
+ object.type
+ end
+
end
end

0 comments on commit 3d4d0d1

Please sign in to comment.
Something went wrong with that request. Please try again.