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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e16106fffda69e8ce0a3647d28e1c761f2d0a1d5
4
- data.tar.gz: d76c5254c70f3ecd386d0f3c82ddf393b1260d2b
3
+ metadata.gz: 8201bf0dbc5df807ea21d1d89974b94e2d0df12c
4
+ data.tar.gz: 5033ce97bfb6d19d7638c871d53027554755355c
5
5
  SHA512:
6
- metadata.gz: 62def8a8e18efdfc72fde4d5e0d376226051adc7d50f51f58f37746f6b6ac4692e5a41807c83901216fb11d12bf82d91ab11a2d0c5cb62b1bb483a34445836b4
7
- data.tar.gz: 1b0f40e9c6d143f4241958feb785108e66d1d48cf633f75dc31c0a95caa1bbf0106821ef34b79d3b35843b3d0c346b9f8ec7e251b14e19f8f555afe7577be30f
6
+ metadata.gz: 8f5048350297f80562613332d87fd4c1617954d4ca374d52c81932b8a84635c067eb4541d6c2a1a9984e8ddf3a6ac2520ceaa8b68114c461b6ccb1e8e7cdd4cd
7
+ data.tar.gz: f1afb2e64728546973b50d2b483c0832fb7195bd188c6c8c3c8dc32057eb106648c8b6c4695beeef412fadfff805d07952ce4a0a1835856a718a6f7e4b8aa196
data/README.md CHANGED
@@ -1,21 +1,15 @@
1
1
  # SimpleAdmin
2
2
 
3
- [![Build Status](https://travis-ci.org/evil-raccoon/simple-admin.svg?branch=master)](https://travis-ci.org/evil-raccoon/simple-admin)
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://i.imgur.com/s1fGVRq.png)
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 'simple-admin'
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
- mount_for_simple_admin
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 Evil Raccoon.
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])
@@ -1,3 +1,3 @@
1
1
  module Simpleadmin
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-03 00:00:00.000000000 Z
11
+ date: 2018-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler