rest_framework 0.0.13 → 0.0.14

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
  SHA256:
3
- metadata.gz: 1c74e7a6e690c22a72a04bb4fd30132b845ef108890c8140673300ca2c047f2a
4
- data.tar.gz: 317f484c3bf46554b5664bc30d20c611e404c4893725c77a84372ebac8e7ca82
3
+ metadata.gz: ab8e500690ee54da42755e6243047dcc2cd78706c96dae29e18510aef2f9829a
4
+ data.tar.gz: 9e8c0990b2bf175effea734f306a806de6094984b6dca7cf2899c9c6e77bcc5a
5
5
  SHA512:
6
- metadata.gz: 2e4dbb91f448068ab3115184518f75a633708e562268863b12f81838a2bcd3a5c344af9390e2238210a52e1070b1d2a2dd51f4b23bc2e51fdd1773e6c702b137
7
- data.tar.gz: 21a18513bfc9682fd57e01d46f63b9172864bbbbd140c8d060c22e28df5896352c547b05fceda4914ac89da7d8c76e56469ace66f7987e30e85c6d24d66b2b35
6
+ metadata.gz: 730b8dcf9e9febb6d6adee7672a3bb1d8458498b6c17b1ec483878a5b8d28638a11f15c71745d9ba06d2eb41e64834a7e591390da3d5d64e1daa30b5244046b3
7
+ data.tar.gz: 544814fbe3bc83bdd6661346bae020ce8f74a0ea8edab9180d88654e09d51b458f5eed5732916c58aff9961da6b6224776d9bc6aff9d01b6519ab0cfe5e2641c
@@ -1 +1 @@
1
- 0.0.13
1
+ 0.0.14
@@ -34,6 +34,11 @@ module RESTFramework
34
34
  :skip_actions,
35
35
  :paginator_class,
36
36
  ])
37
+
38
+ # skip csrf since this is an API
39
+ base.skip_before_action(:verify_authenticity_token) rescue nil
40
+
41
+ # handle some common exceptions
37
42
  base.rescue_from(ActiveRecord::RecordNotFound, with: :record_not_found)
38
43
  base.rescue_from(ActiveRecord::RecordInvalid, with: :record_invalid)
39
44
  base.rescue_from(ActiveRecord::RecordNotSaved, with: :record_not_saved)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory N. Schmit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-10 00:00:00.000000000 Z
11
+ date: 2020-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails