doc_contract 0.1.3 → 0.1.5

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: a8bf71ecf102ece032fb389c712f87952492ffab66f2316b9f2a08a14c78a377
4
+ data.tar.gz: 315c59f51e3f2639cb3dc98a714b8be9cbe528bb407ce5bea0076bbeacf0a038
5
5
  SHA512:
6
- metadata.gz: f492dd061c367f22446893d10173575757f9720d003b43e366f8cbbddaef5bb2166c171eeb5cdfdbec0c4686cc3e61a6d4388b387479fbe22f41c4a61f2017ef
7
- data.tar.gz: fab2d0c24a47f34cf2461e7553ff368a685ee346aaa50c45cb6f3a95fe32ef826a200b526fbd8164bb1310db6e7b5d700a18f3918fc181df73401fe4c202bb9a
6
+ metadata.gz: 2d5e249c5e2e04e8d1129ae3e58a1fff499632cf2887e0d603c7fb6b4935961bbdd3a1bd690fa6746754375356011f64215d842c715e58828f8d9fcf2cb59551
7
+ data.tar.gz: a1c6c894ac00bd866f5e86d2e4ed657763e5c4114a80c38a62fc1d2c161fa35b0f4074514463eb8820a922ed3e69389cf2fa492dd2902477c0094db0bfa5f834
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
@@ -1,6 +1,7 @@
1
1
  module DocContract
2
2
  class ApplicationController < ApplicationController
3
3
  helper_method :query, :readme_html
4
+
4
5
  def main
5
6
  end
6
7
 
@@ -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,7 @@
1
1
  require 'numbers_and_words'
2
+ require 'cancancan'
3
+ require 'ransack'
4
+ require 'kaminari'
2
5
  module DocContract
3
6
  class Engine < ::Rails::Engine
4
7
  #isolate_namespace self.name.deconstantize.safe_constantize
@@ -1,3 +1,3 @@
1
1
  module DocContract
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.5"
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin ter Kuile