ar_http_wrapper 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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, :type => JSON, :desc => "The new record attributes."
21
+ requires klass_to_param_key, :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, :type => JSON, :desc => "The updated record attributes."
30
+ requires klass_to_param_key, :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.9"
2
+ VERSION = "0.1.0"
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.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: