toast 0.8.6 → 0.8.7
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.
- data/lib/toast/association.rb +1 -1
- data/lib/toast/collection.rb +1 -1
- data/lib/toast/record.rb +1 -1
- data/lib/toast/version.rb +1 -1
- metadata +4 -4
data/lib/toast/association.rb
CHANGED
|
@@ -114,7 +114,7 @@ module Toast
|
|
|
114
114
|
:content_type => @associate_config_out.media_type
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
rescue ActiveRecord::RecordInvalid => e
|
|
117
|
+
rescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved => e
|
|
118
118
|
# model validation failed
|
|
119
119
|
raise PayloadInvalid.new(e.message)
|
|
120
120
|
end
|
data/lib/toast/collection.rb
CHANGED
|
@@ -110,7 +110,7 @@ module Toast
|
|
|
110
110
|
:content_type => @config_out.media_type
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
rescue ActiveRecord::RecordInvalid => e
|
|
113
|
+
rescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved => e
|
|
114
114
|
# model validation failed
|
|
115
115
|
raise PayloadInvalid.new(e.message)
|
|
116
116
|
end
|
data/lib/toast/record.rb
CHANGED
data/lib/toast/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: toast
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 49
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 8
|
|
9
|
-
-
|
|
10
|
-
version: 0.8.
|
|
9
|
+
- 7
|
|
10
|
+
version: 0.8.7
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- "robokopp (Robert Anni\xC3\xA9s)"
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-
|
|
18
|
+
date: 2012-10-05 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: rails
|