apique 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 513c3a8d2c413a70b5f0cc6060812209a966e34c
4
- data.tar.gz: 39982ba0c78f57a14d57186a815bd09adc274b24
3
+ metadata.gz: 2abc44aee04063bac64d15d2fded5de9af1f76cf
4
+ data.tar.gz: 7052d6f9a055809dcb3552191a548d3fb60a8b2d
5
5
  SHA512:
6
- metadata.gz: d113e980a25c9da529a4dee28ea87dab9d52600dd7959dd36d2d739355e1021c76e175f6ffed5443be1ac12b677c31ae85f1b26765230365d210de6ef66ea55d
7
- data.tar.gz: e027b55435aa903e570993fcde4db27ab161648213bb1874f9be973e8877293ec39cb7f6c33ab561c6791763d0cd309a02a06aff85fc4c6193b86a106c6047af
6
+ metadata.gz: 5129c3710bc99de5fc2e01cee6b38fbf01b3ddcec925f1ed0d1e406c57f0a0bfff316805caa2a8deb92bfbf2ebb1e4c5739b62c4adddbe965244555022e91f4d
7
+ data.tar.gz: 48fc61433beb3a60d23a28604d2ff554fd8b45dfc0c6a275ba047ca64773b39218e4381af5a690960d6bdae6ec50eee4357ce51a99dadb9899747ee3fe8f3b02
@@ -26,7 +26,7 @@ module Apique::Editable
26
26
 
27
27
  # PATCH/PUT /api/{plural_resource_name}/{id}
28
28
  def update
29
- if get_resource.update(update_api_params)
29
+ if get_resource.update(apique_update_params)
30
30
  render json: get_resource
31
31
  else
32
32
  render json: {errors: get_resource.errors}
@@ -61,7 +61,7 @@ module Apique::Editable
61
61
  def set_resource(resource = nil)
62
62
  resource ||= params[:id] ? resource_class.find(params[:id]) : resource_class.new(apique_create_params)
63
63
  unless resource
64
- raise RecordNotFound, "could not find a record of type #{resource_class} with id = #{params[:id]}"
64
+ raise Apique::RecordNotFound, "could not find a record of type #{resource_class} with id = #{params[:id]}"
65
65
  end
66
66
 
67
67
  instance_variable_set(resource_variable_name, resource)
@@ -1,3 +1,3 @@
1
1
  module Apique
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apique
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Baev