tramway-api 1.2 → 1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e41e964d3ade1c230c77385929ee24692558d8cf59571134ccd9da815db2295
4
- data.tar.gz: 9dc5042350b5a9deb0e2afda435797bec9015743eaa5bb0f184aaaa1ccfcbb21
3
+ metadata.gz: b2a134ace39764a8b805342beba2420b7234d7478f61555561a6aef25d859d56
4
+ data.tar.gz: af53226c426b2ceb419a505d939bad28246dcb96290c7c74cf7a9cc8002fe0c5
5
5
  SHA512:
6
- metadata.gz: 7627d0d269ff690cddc29a5a78369f968701e3992cb53e0b1f7c5b61d7e9e2b99e7a5af343dd5266e762bc5aa786ecfb06573128930360279e98f1ed1f7fce7f
7
- data.tar.gz: ddebade027114042a877ff9a19a531bedd8787317bd8b3065b630a7fff9ba062262bfc719d94dc81bd514b9f4fef6790e46a34566510aa424db94421de362712
6
+ metadata.gz: 52ed2c22e3ba6ccac43022e7b34045c592bb9f65bb3e17d9cf088aa094cb386ba764f1a0da9194ba28087bd7669671faeecc7a2ba799b06d1ef2409ab396028b
7
+ data.tar.gz: 037d92ad51a0e3acb2c7487f4ef95590e37c504f72695643e54f044067b6fed9b64212d1c62cd78e31c321590727f4a6a5c439c3c3b768c122cc808ed82cce98
@@ -40,6 +40,14 @@ module Tramway::Api::V1
40
40
  status: :ok
41
41
  end
42
42
 
43
+ def destroy
44
+ record = model_class.active.find params[:id]
45
+ record.remove
46
+ render json: record,
47
+ serializer: serializer_class,
48
+ status: :no_content
49
+ end
50
+
43
51
  private
44
52
 
45
53
  def check_available_model_class
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Api
3
- VERSION = '1.2'
3
+ VERSION = '1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-api
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov