simpleadmin 1.2.6 → 1.2.7

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: 143bc6fa0f862fce2e3287aef7570498f4a9489c
4
- data.tar.gz: 8291dae82d4e8c743a45809c4aa1644084f9684f
3
+ metadata.gz: 76f59171482dd04fed72bebf9539ca7009bc9651
4
+ data.tar.gz: 46c686fdf3b9ed9372e45b6bae01b2c0f9e81376
5
5
  SHA512:
6
- metadata.gz: 90bf16d2d41b6cfb0d62cedaee4c105bf661acfffcad1c8facc55157529143cc69a2823e145463281def018f14ad2f11494b39246707451aa82c74989e6bbe22
7
- data.tar.gz: 1a0a6e3d9dbbf4e852d8c5d4c43df859dac16c0cfd41dc23491094ef5bf3ff47fb8c8f5f128f51cefa5e26359595ecac64386d415bfab0998929a559f5c4f388
6
+ metadata.gz: a8f4fba3311b03a45f58f10c9b071032077d62c3599c9ab28b42051e71f50dd4617e45ddedf5d2fa7df5272f0dfb9a86632766f6c7e9f224ef61b913f7ee907f
7
+ data.tar.gz: eba3762f113b10b4677d01ca9181dc216696298b1dcad670a4829e74eb2740ac981eeaf5245201b22416cd3c63c7d5222f90d470d269499ebd8b6ab90658af71
@@ -28,6 +28,10 @@ module SimpleAdmin
28
28
  render json: resource
29
29
  end
30
30
 
31
+ def show_total
32
+ render json: model_klass.count
33
+ end
34
+
31
35
  def create
32
36
  resource = model_klass.new(resource_params)
33
37
 
@@ -19,7 +19,8 @@ module ActionDispatch::Routing
19
19
 
20
20
  resources :resources
21
21
 
22
- get 'resource_show_by', to: 'resources#show_by'
22
+ get 'resource_show_by', to: 'resources#show_by'
23
+ get 'resource_show_total', to: 'resources#show_total'
23
24
 
24
25
  get 'version', to: 'versions#show'
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module Simpleadmin
2
- VERSION = '1.2.6'.freeze
2
+ VERSION = '1.2.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simpleadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Strukov