filtering 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filtering/base.rb +2 -1
- data/lib/filtering/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: a0883eef03a389728f39994487e3d2faf6868afb
|
4
|
+
data.tar.gz: 6f06cda7fe9c612d6098c66a9c045ebdb944bcb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bf114589b6eccad42ac9aa91903024d273b37208c3faaceae036dd1150b9bcda9cae0244bb3ddec5d41812b24c1df686ab1cb75b5cfec0ac80ef20ac693e02b
|
7
|
+
data.tar.gz: 4a76051ee523b08547837b00ee4af25ffc947f790e261dedd2856cd32078479edd6ccbeb03274f97d1b643ec9fc27944e9f25d99562ac08cdb8c8da1e630bf6e
|
data/lib/filtering/base.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
class Filtering::Base
|
2
2
|
def initialize(params, args = {})
|
3
|
+
@params = params
|
3
4
|
@plain_params = permit(params, plain_acessible_params)
|
4
5
|
@complex_params = permit(params, complex_acessible_params)
|
5
6
|
@page = args[:page]
|
@@ -21,7 +22,7 @@ class Filtering::Base
|
|
21
22
|
|
22
23
|
protected
|
23
24
|
|
24
|
-
attr_reader :plain_params, :complex_params, :page, :order, :group, :result
|
25
|
+
attr_reader :params, :plain_params, :complex_params, :page, :order, :group, :result
|
25
26
|
|
26
27
|
def relation
|
27
28
|
raise 'relation method not implemented. Add this method to calling class and add AR relation, for example Model.all'
|
data/lib/filtering/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filtering
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vitaliy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|