simpleadmin 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -11
- data/app/controllers/simple_admin/resources_controller.rb +1 -1
- data/lib/simpleadmin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8201bf0dbc5df807ea21d1d89974b94e2d0df12c
|
4
|
+
data.tar.gz: 5033ce97bfb6d19d7638c871d53027554755355c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f5048350297f80562613332d87fd4c1617954d4ca374d52c81932b8a84635c067eb4541d6c2a1a9984e8ddf3a6ac2520ceaa8b68114c461b6ccb1e8e7cdd4cd
|
7
|
+
data.tar.gz: f1afb2e64728546973b50d2b483c0832fb7195bd188c6c8c3c8dc32057eb106648c8b6c4695beeef412fadfff805d07952ce4a0a1835856a718a6f7e4b8aa196
|
data/README.md
CHANGED
@@ -1,21 +1,15 @@
|
|
1
1
|
# SimpleAdmin
|
2
2
|
|
3
|
-
|
4
|
-
[![codecov](https://codecov.io/gh/evil-raccoon/simple_admin/branch/master/graph/badge.svg)](https://codecov.io/gh/evil-raccoon/simple_admin)
|
5
|
-
[![Inline docs](http://inch-ci.org/github/evil-raccoon/simple_admin.svg)](http://inch-ci.org/github/evil-raccoon/simple_admin)
|
6
|
-
|
7
|
-
https://getsimpleadmin.com
|
8
|
-
|
9
|
-
A small API library to connect your application with SimpleAdmin service and create admin dashboards in an instant.
|
3
|
+
API library to connect your application with SimpleAdmin service and create admin dashboards in an instant. [Try the demo][demo]
|
10
4
|
|
11
5
|
## Getting started
|
12
6
|
|
13
|
-
![simple_admin](https://
|
7
|
+
![simple_admin](https://image.ibb.co/mTjOpe/simpleadmin_preview.png)
|
14
8
|
|
15
9
|
Add SimpleAdmin to your Gemfile and run bundle:
|
16
10
|
|
17
11
|
```ruby
|
18
|
-
gem '
|
12
|
+
gem 'simpleadmin'
|
19
13
|
```
|
20
14
|
|
21
15
|
After that, you need to mount simple admin built-in routes:
|
@@ -23,7 +17,7 @@ After that, you need to mount simple admin built-in routes:
|
|
23
17
|
```ruby
|
24
18
|
# config/routes.rb
|
25
19
|
Rails.application.routes.draw do
|
26
|
-
|
20
|
+
mount_simpleadmin
|
27
21
|
end
|
28
22
|
```
|
29
23
|
|
@@ -46,4 +40,6 @@ ENV['SIMPLE_ADMIN_SECRET_KEY'] = 'SECRET_KEY'
|
|
46
40
|
|
47
41
|
Released under MIT License.
|
48
42
|
|
49
|
-
Copyright © 2018
|
43
|
+
Copyright © 2018 SimpleAdmin.
|
44
|
+
|
45
|
+
[demo]: https://getsimpleadmin.com/en/demo/admin/resources?model_klass_name=Post
|
@@ -8,7 +8,7 @@ module SimpleAdmin
|
|
8
8
|
page = params[:page].to_i if params[:page].present?
|
9
9
|
total = model_klass.count
|
10
10
|
|
11
|
-
resources = model_klass.limit(per_page)
|
11
|
+
resources = model_klass.order(id: :asc).limit(per_page)
|
12
12
|
|
13
13
|
if params[:query].present?
|
14
14
|
search_result = search(params[:query], model_klass, params[:model_attributes])
|
data/lib/simpleadmin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simpleadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Strukov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|