doc_contract 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19b2e7620eb38e143f377e284ef114d73d8ecaded35f8922d0b75e7c0928f6a5
4
- data.tar.gz: 57633ce96bae4ced8db47c6e2a0071b7447b61ecc145358e7102e4970072e8e8
3
+ metadata.gz: fb6f6bf75e0e4c9b9ea09c49146edba377b3346c5fcc8e9f7e9ecf932b422447
4
+ data.tar.gz: 52c2ed3b75132578ec81071c6ebf994c99ca6e814533c4acbbc76cfeacd8da38
5
5
  SHA512:
6
- metadata.gz: f492dd061c367f22446893d10173575757f9720d003b43e366f8cbbddaef5bb2166c171eeb5cdfdbec0c4686cc3e61a6d4388b387479fbe22f41c4a61f2017ef
7
- data.tar.gz: fab2d0c24a47f34cf2461e7553ff368a685ee346aaa50c45cb6f3a95fe32ef826a200b526fbd8164bb1310db6e7b5d700a18f3918fc181df73401fe4c202bb9a
6
+ metadata.gz: dae1bda1cdd2890eba9cbf67eaf58e04aa4d12ea8eb5afbf99665a4d6c7f20f1f16d3596082e7ea19f2f1bd53219ffb51d38f37d5a9491cb765d3b75466aad21
7
+ data.tar.gz: d8cd507880bb8cfce24e98f7a1da83672290bcdd3de9ef0547159f5d9baaaba4f7c9c1bf59142c67be4e09595a9f23debebd753e492ee4d00ba06a6e84970934
data/README.md CHANGED
@@ -218,7 +218,6 @@ end
218
218
 
219
219
  gem 'doc_contract', gitlab: '<your gitlab name>/doc_contract', branch: :master
220
220
  ```
221
- Contribution directions go here.
222
221
 
223
222
  ## CHANGELOG
224
223
  The CHANGELOG can be found using
@@ -6,7 +6,7 @@ module DocContract
6
6
 
7
7
  def index
8
8
  authorize! :index, record_class
9
- @q = record_class.search query
9
+ @q = record_class.ransack query
10
10
  @q.sorts = "created_at desc" if @q.sorts.empty?
11
11
  @records = @q.result.includes(:contract_template).page(params[:page]).per(100)
12
12
  respond_with(@records)
@@ -6,7 +6,7 @@ module DocContract
6
6
 
7
7
  def index
8
8
  authorize! :index, record_class
9
- @q = record_class.search query
9
+ @q = record_class.ransack query
10
10
  @q.sorts = 'created_at desc' if @q.sorts.empty?
11
11
  @records = @q.result.page(params[:page]).per(100)
12
12
  respond_with(@records)
@@ -1,4 +1,5 @@
1
1
  require 'numbers_and_words'
2
+ require 'ransack'
2
3
  module DocContract
3
4
  class Engine < ::Rails::Engine
4
5
  #isolate_namespace self.name.deconstantize.safe_constantize
@@ -1,3 +1,3 @@
1
1
  module DocContract
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doc_contract
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin ter Kuile