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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 993ad6c1ecaba76a41efbfe0aaf48c8142a552eb
4
- data.tar.gz: 56606fffcfb1f59f1732acf1535d6a242544e8d5
3
+ metadata.gz: a0883eef03a389728f39994487e3d2faf6868afb
4
+ data.tar.gz: 6f06cda7fe9c612d6098c66a9c045ebdb944bcb3
5
5
  SHA512:
6
- metadata.gz: 180a90fe432e3166c5d446ea040c9517a48b44dc5943cb0accd501492b75dcf28c127fcb67bd0f5354966455958dcfb287ecd496910d15b30cba9aa210d3d69d
7
- data.tar.gz: 3ba9d68b62b8cdb49c9c8b9db862b440446409a9f62e510f997b585bb075b07f555f749bd919b91eaae081af8f0dac342c291d8d9258a5e5ac87b3fae55fa34e
6
+ metadata.gz: 9bf114589b6eccad42ac9aa91903024d273b37208c3faaceae036dd1150b9bcda9cae0244bb3ddec5d41812b24c1df686ab1cb75b5cfec0ac80ef20ac693e02b
7
+ data.tar.gz: 4a76051ee523b08547837b00ee4af25ffc947f790e261dedd2856cd32078479edd6ccbeb03274f97d1b643ec9fc27944e9f25d99562ac08cdb8c8da1e630bf6e
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module Filtering
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-24 00:00:00.000000000 Z
11
+ date: 2018-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler