notifiable-rails 0.7.0 → 0.7.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d94e321ae2b6cdd5cb650f00076bf9c704849ff6
|
4
|
+
data.tar.gz: ae6831bcea81f4ea893373c083282eb2fe8ee9b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15eebde71c555f7e678cb94bed12b0de6f10b818da1e3e25416102ba578205338471d137e850406bc388c0e3c39ed7486201909ddc8a19c7be09e3639c8afe28
|
7
|
+
data.tar.gz: 1e71e6c32c77b2a04ed63dff6d9e12ce570fbff0ffd7d17fb77e62271d5781f244547f04cc77fe87c300ae50dd6857359c8986b962e682551e76c56f11c41c4a
|
@@ -19,7 +19,7 @@ module Notifiable
|
|
19
19
|
if @device_token.update_attributes(notifiable_params)
|
20
20
|
head :status => :ok
|
21
21
|
else
|
22
|
-
render :json => { :errors => @device_token.errors.full_messages }, :status => :
|
22
|
+
render :json => { :errors => @device_token.errors.full_messages }, :status => :unprocessable_entity
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -32,7 +32,7 @@ module Notifiable
|
|
32
32
|
elsif @device_token.destroy
|
33
33
|
head :status => :ok
|
34
34
|
else
|
35
|
-
render :json => { :errors => @device_token.errors.full_messages }, :status => :
|
35
|
+
render :json => { :errors => @device_token.errors.full_messages }, :status => :unprocessable_entity
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
data/lib/notifiable/version.rb
CHANGED