grape-listing 1.1.3.1 → 1.1.3.2
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 +4 -4
- data/README.md +4 -4
- data/lib/listing_service/serialization.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25983a60808ce493ed6c1ed4bd878f775f8d1774d59237b5ff7e67c4604093eb
|
|
4
|
+
data.tar.gz: c0a525c0d05080d2a6bb465790883d1909d0ca93fe6fbe9b003f2a572e42b2b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 760336dd3ddbd1eefb129d69f9667e278e8f3dff5818470b47d4ac5a20737493bf88a51f358e37151bccbaab8cde2f5dc6d13cc703b7e7fee204935f2ec13cec
|
|
7
|
+
data.tar.gz: d03755555bd12a587dd9bf4d5de76c16f644bb2acaa220ddff1de5877a705debb0254f962dbd65513f22a290e75596def586ceecd6f28bdf0fd6ab60c2e9008b
|
data/README.md
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
Добавить в Gemfile
|
|
9
9
|
|
|
10
|
-
```
|
|
10
|
+
```ruby
|
|
11
11
|
gem 'grape-listing'
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
И выполнить:
|
|
15
15
|
|
|
16
|
-
```
|
|
16
|
+
```ruby
|
|
17
17
|
bundle
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ bundle
|
|
|
23
23
|
|
|
24
24
|
Например:
|
|
25
25
|
|
|
26
|
-
```
|
|
26
|
+
```ruby
|
|
27
27
|
get 'users' do
|
|
28
28
|
listing model: User,
|
|
29
29
|
entity: UserEntity,
|
|
@@ -76,7 +76,7 @@ end
|
|
|
76
76
|
|
|
77
77
|
Добавьте файл конфигурации `config/initializers/grape_listing.rb` с содержимым:
|
|
78
78
|
|
|
79
|
-
```
|
|
79
|
+
```ruby
|
|
80
80
|
GrapeListing.configure do |config|
|
|
81
81
|
end
|
|
82
82
|
```
|
|
@@ -23,7 +23,7 @@ module GrapeListing
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def serialize_with_entity(records)
|
|
26
|
-
opts = { current_user: @current_user }
|
|
26
|
+
opts = { params: @params, current_user: @current_user }
|
|
27
27
|
|
|
28
28
|
# требуемый список полей (если был передан)
|
|
29
29
|
opts[:only] = @only_columns if @only_columns
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape-listing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.3.
|
|
4
|
+
version: 1.1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Павел Бабин
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-04-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|