ar_http_wrapper 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@ module ActiveRecordApiWrapper
18
18
 
19
19
  api_class.desc "Creates a record."
20
20
  api_class.params do
21
- requires klass_to_param_key, :desc => "The new record attributes."
21
+ requires klass_to_param_key, :type => JSON, :desc => "The new record attributes."
22
22
  end
23
23
  api_class.post "/" do
24
24
  klass.create(params[klass_to_param_key])
@@ -27,7 +27,7 @@ module ActiveRecordApiWrapper
27
27
  api_class.desc "Updates a record."
28
28
  api_class.params do
29
29
  requires :id, :desc => "The record id."
30
- requires klass_to_param_key, :desc => "The updated record attributes."
30
+ requires klass_to_param_key, :type => JSON, :desc => "The updated record attributes."
31
31
  end
32
32
  api_class.put "/:id" do
33
33
  updated_attr = params[klass_to_param_key]
@@ -1,3 +1,3 @@
1
1
  module ArHttpWrapper
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_http_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: